repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding upstream version 3.50~pre5.
[syslinux-debian/hramrach.git]
/
com32
/
lib
/
strsep.c
blob
58a7a07773b4f0d23dc7bd38192ad40a6c50a9e0
1
/*
2
* strsep.c
3
*/
4
5
#include <string.h>
6
7
char
*
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
}