]> git.cameronkatri.com Git - mandoc.git/blob - test-strlcpy.c
release 1.14.6
[mandoc.git] / test-strlcpy.c
1 #include <string.h>
2
3 int
4 main(void)
5 {
6 char buf[2] = "";
7 return ! (strlcpy(buf, "a", sizeof(buf)) == 1 &&
8 buf[0] == 'a' && buf[1] == '\0');
9 }