[BACK]Return to test-strsep.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/test-strsep.c, Revision 1.2

1.1       schwarze    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");
1.2     ! schwarze    9:        return ! (retp == buf && buf[1] == '\0' && workp == buf + 2);
1.1       schwarze   10: }

CVSweb