]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-fgetln.c
Improve -Tascii output for Unicode escape sequences: For the first 512
[mandoc.git] / test-fgetln.c
index 90869cd89fd7b9c19a477df2f216243cf740dd98..ac225a178f35cd1a9874cf754e4a9a3dabeb03ce 100644 (file)
@@ -1,11 +1,11 @@
+#include <sys/types.h>
 #include <stdio.h>
-#include <stdlib.h>
+#include <unistd.h>
 
 int
 main(void)
 {
-       char *cp;
        size_t sz;
-       cp = fgetln(stdin, &sz);
-       return 0;
+       fclose(stdin);
+       return(NULL != fgetln(stdin, &sz));
 }