home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
stg_v4.lzh
/
strcut.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-11
|
342b
|
29 lines
char *
strcut(s,c)
char *s;
int c;
{
if (!s) return(0);
if (!c) goto white;
while (*s)
{
if (*s==c)
{
*s++=0;
return(s);
}
s++;
}
return(0);
white:
while (*s)
{
if (*s==' ' || *s==9 || *s==13 || *s==10)
{
while (*s==' ' || *s==9 || *s==13 || *s==10)
*s++=0;
return(s);
}
}
}