summaryrefslogblamecommitdiffstats
path: root/test-fgetln.c
blob: c2abf06d29fb6b67815e2ce89817aae148814e7a (plain) (tree)
1
2
3
4
5
6
7
8
9
                      
                  
                   



          
                  
                      
                                          
 
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>

int
main(void)
{
	size_t sz;
	fclose(stdin);
	return fgetln(stdin, &sz) != NULL;
}