source: bootcd/isolinux/syslinux-6.03/com32/lib/strsep.c

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 243 bytes
Line 
1/*
2 * strsep.c
3 */
4
5#include <string.h>
6
7char *strsep(char **stringp, const char *delim)
8{
9    char *s = *stringp;
10    char *e;
11
12    if (!s)
13        return NULL;
14
15    e = strpbrk(s, delim);
16    if (e)
17        *e++ = '\0';
18
19    *stringp = e;
20    return s;
21}
Note: See TracBrowser for help on using the repository browser.