Add memtest support.
[syslinux-debian/hramrach.git] / com32 / lib / strsep.c
blob5c4f03fccc0969b3d70e34b008142525bf05ee3a
1 /*
2 * strsep.c
3 */
5 #include <string.h>
7 char *strsep(char **stringp, const char *delim)
9 char *s = *stringp;
10 char *e;
12 if (!s)
13 return NULL;
15 e = strpbrk(s, delim);
16 if (e)
17 *e++ = '\0';
19 *stringp = e;
20 return s;