]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-fgetln.c
If no output device was allocated because no file wanted to produce output,
[mandoc.git] / test-fgetln.c
index ac225a178f35cd1a9874cf754e4a9a3dabeb03ce..c2abf06d29fb6b67815e2ce89817aae148814e7a 100644 (file)
@@ -7,5 +7,5 @@ main(void)
 {
        size_t sz;
        fclose(stdin);
-       return(NULL != fgetln(stdin, &sz));
+       return fgetln(stdin, &sz) != NULL;
 }