home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
program
/
dlibsrc
/
strrev.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-10-05
|
242b
|
19 lines
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);
}