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

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

1.1       kristaps    1: #include <string.h>
                      2:
                      3: int
1.2     ! schwarze    4: main(void)
1.1       kristaps    5: {
1.2     ! schwarze    6:        char buf[3] = "a";
        !             7:        return( ! (2 == strlcat(buf, "b", sizeof(buf)) &&
        !             8:            'a' == buf[0] && 'b' == buf[1] && '\0' == buf[2]));
1.1       kristaps    9: }

CVSweb