home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
enterprs
/
cpm
/
utils
/
s
/
smc21lib.lzh
/
REVERSE.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Windows-1252 (detected)
Wrap
C/C++ Source or Header
|
1993-03-25
|
256 b
|
19 lines
#define NOCCARGC
/*
** Reverse a string in place.
*/
reverse(s) char *s; {
char *j;
int c;
j = s + strlen(s) -1;
while(s < j) {
c = *s;
*s++ = *j;
*j-- = c;
}
}
CCDECI, CCINCI, CCDDPI, CCPDPI, CCPINT, PINTè