1 /* strsep implementation for systems that do not have it in libc */
8 char *strsep(char **stringp
, const char *delim
) {
15 if(delim
[0] == '\0' || delim
[1] == '\0') {
23 else if(*begin
== '\0')
26 end
= strchr(begin
+ 1, ch
);
30 end
= strpbrk(begin
, delim
);