test-fgetln.c revision 274880
1274880Sbapt#include <sys/types.h> 2274880Sbapt#include <stdio.h> 3274880Sbapt#include <unistd.h> 4274880Sbapt 5274880Sbaptint 6274880Sbaptmain(void) 7274880Sbapt{ 8274880Sbapt size_t sz; 9274880Sbapt fclose(stdin); 10274880Sbapt return(NULL != fgetln(stdin, &sz)); 11274880Sbapt} 12