]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-strlcpy.c
implement -h (synopsis only) for preformatted (cat) pages;
[mandoc.git] / test-strlcpy.c
index c7d182aaf27c6a817f0997e336e134f2a390a7d3..05fa509455c019e98b41170b9e6d56de6a96877b 100644 (file)
@@ -1,8 +1,9 @@
 #include <string.h>
 
 int
-main(int argc, char **argv)
+main(void)
 {
-       strlcpy(argv[0], argv[1], 10);
-       return 0;
+       char buf[2] = "";
+       return( ! (1 == strlcpy(buf, "a", sizeof(buf)) &&
+           'a' == buf[0] && '\0' == buf[1]));
 }