home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 48
/
Amiga_Dream_48.iso
/
Atari
/
c
/
sozobon-v2
/
dlibsrc.lha
/
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);
}