16 lines
172 B
C
16 lines
172 B
C
/*
|
|
* strtok.c
|
|
*/
|
|
|
|
#include <string.h>
|
|
|
|
char *strtok(char *s, const char *delim)
|
|
{
|
|
static char *holder;
|
|
|
|
if (s)
|
|
holder = s;
|
|
|
|
return strsep(&holder, delim);
|
|
}
|