home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
223_01
/
left.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1979-12-31
|
384 b
|
11 lines
/*
** left -- left adjust and null terminate a string
*/
static char *str2;
left(str) char *str; {
str2=str;
while(*str2==' ') ++str2;
while(*str++ = *str2++);
}