Return to test-fgetln.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.1, 2011/12/13 11:26:12 | version 1.2, 2014/01/04 01:11:00 | ||
---|---|---|---|
|
|
||
#include <sys/types.h> | |||
#include <stdio.h> | #include <stdio.h> | ||
#include <stdlib.h> | #include <unistd.h> | ||
int | int | ||
main(void) | main(void) | ||
{ | { | ||
char *cp; | |||
size_t sz; | size_t sz; | ||
cp = fgetln(stdin, &sz); | fclose(stdin); | ||
return 0; | return(NULL != fgetln(stdin, &sz)); | ||
} | } |