]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/mandoc/test-strsep.c
Copy googletest 1.8.1 from ^/vendor/google/googletest/1.8.1 to .../contrib/googletest
[FreeBSD/FreeBSD.git] / contrib / mandoc / 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 && buf[1] == '\0' && workp == buf + 2);
10 }