]> git.cameronkatri.com Git - mandoc.git/blob - test-strlcat.c
typo; noticed by jmc@ some time ago
[mandoc.git] / test-strlcat.c
1 #include <string.h>
2
3 int
4 main(void)
5 {
6 char buf[3] = "a";
7 return( ! (2 == strlcat(buf, "b", sizeof(buf)) &&
8 'a' == buf[0] && 'b' == buf[1] && '\0' == buf[2]));
9 }