#line 16 "tokenize.c-nw" #include EXPORT char *tokenize(char *s, char *set, char **next) { if (!s) return NULL; s += strspn(s, set); *next = s + strcspn(s, set); if (**next != '\0') *((*next)++) = '\0'; else *next = NULL; return *s ? s : NULL; }