1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/contrib/mdocml/test-strsep.c
2016-01-15 23:28:12 +00:00

11 lines
183 B
C

#include <string.h>
int
main(void)
{
char buf[6] = "aybxc";
char *workp = buf;
char *retp = strsep(&workp, "xy");
return ! (retp == buf && buf[1] == '\0' && workp == buf + 2);
}