Return to test-strlcat.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
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"; 1.3 ! schwarze 7: return ! (strlcat(buf, "b", sizeof(buf)) == 2 && ! 8: buf[0] == 'a' && buf[1] == 'b' && buf[2] == '\0'); 1.1 kristaps 9: }