git.ckatri.com
/
mandoc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
In -p (picky) mode, warn unless each filename (aka mlink)
[mandoc.git]
/
test-strsep.c
1
#include <string.h>
2
3
int
4
main
(
void
)
5
{
6
char
buf
[
6
] =
"aybxc"
;
7
char
*
workp
=
buf
;
8
char
*
retp
=
strsep
(&
workp
,
"xy"
);
9
return
( ! (
retp
==
buf
&&
'\0'
==
buf
[
1
] &&
buf
+
2
==
workp
));
10
}