X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/814b41ea4b9a164160af761e33b09e8f7efaafa3..b6d8272551435098c716c546a5201206517e5da9:/test-fgetln.c diff --git a/test-fgetln.c b/test-fgetln.c index 90869cd8..c2abf06d 100644 --- a/test-fgetln.c +++ b/test-fgetln.c @@ -1,11 +1,11 @@ +#include #include -#include +#include int main(void) { - char *cp; size_t sz; - cp = fgetln(stdin, &sz); - return 0; + fclose(stdin); + return fgetln(stdin, &sz) != NULL; }