1 /* BSD strsep function */ 2 3 /* Copyright 2002, Red Hat Inc. */ 4 5 /* undef STRICT_ANSI so that strsep prototype will be defined */ 6 #undef __STRICT_ANSI__ 7 #include <string.h> 8 #include <_ansi.h> 9 10 extern char *__strtok_r (char *, const char *, char **, int); 11 12 char * strsep(register char ** source_ptr,register const char * delim)13strsep (register char **source_ptr, 14 register const char *delim) 15 { 16 return __strtok_r (*source_ptr, delim, source_ptr, 0); 17 } 18