summaryrefslogblamecommitdiffstats
path: root/test-getline.c
blob: d05df217121f6753b6c73ddb3cbe58ca3e208ca6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












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

int
main(void)
{
	char	*line = NULL;
	size_t	 linesz = 0;

	fclose(stdin);
	return getline(&line, &linesz, stdin) != -1;
}