]> git.cameronkatri.com Git - mandoc.git/blob - test-strlcpy.c
Grrr, patch(1) merged the new function to the wrong place in this file.
[mandoc.git] / test-strlcpy.c
1 #include <string.h>
2
3 int
4 main(void)
5 {
6 char buf[2] = "";
7 return( ! (1 == strlcpy(buf, "a", sizeof(buf)) &&
8 'a' == buf[0] && '\0' == buf[1]));
9 }