home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
STRREV.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
399b
|
25 lines
/* from Dale Schumacher's dLibs library */
/* if you chage the behaviour so that it does not reverse in-place
* please change mktemp.c too (it assumes rev is in-place)
*/
char *strrev(string)
char *string;
{
register char *p = string, *q, c;
if(*(q = p)) /* non-empty string? */
{
while(*++q)
;
while(--q > p)
{
c = *q;
*q = *p;
*p++ = c;
}
}
return(string);
}