home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource3
/
187_01
/
skptok.c
< prev
next >
Wrap
C/C++ Source or Header
|
1985-12-31
|
889b
|
24 lines
/*@*****************************************************/
/*@ */
/*@ skptok - skip over a token (to next delimiter). */
/*@ A blank, ';', or NULL will terminate it. */
/*@ */
/*@ Usage: skptok(cbuf); */
/*@ where cbuf is a pointer to characters. */
/*@ */
/*@ Returns a pointer to the char which terminated */
/*@ the scan (i.e. the blank, ';' or NULL). */
/*@ */
/*@*****************************************************/
#define NULL 0x00
char *skptok(cbuf)
char *cbuf;
{
/* skip token in buffer */
for(;(*cbuf != ' ') && (*cbuf != ';') && (*cbuf != NULL);cbuf++)
;
return (cbuf);
}