1 /* strsep implementation for systems that do not have it in libc */
9 char *strsep(char **stringp
, const char *delim
) {
16 if(delim
[0] == '\0' || delim
[1] == '\0') {
24 else if(*begin
== '\0')
27 end
= strchr(begin
+ 1, ch
);
31 end
= strpbrk(begin
, delim
);