1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/contrib/mdocml/test-strsep.c
2014-11-22 18:57:23 +00:00

11 lines
185 B
C

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