blob: c2671af1829cbb03261b00f0e6d98a819a6ccfc5 [file] [log] [blame]
/*
* strtok.c
*/
#include <string.h>
char *strtok(char *s, const char *delim)
{
static char *holder;
if (s)
holder = s;
do {
s = strsep(&holder, delim);
} while (s && !*s);
return s;
}