1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00
freebsd/contrib/mandoc/test-getline.c
Baptiste Daroussin 61d06d6bd1 Import mandoc 1.14.4
Approved by:	re (kib)
MFC after:	1 week
2018-09-20 10:58:52 +00:00

14 lines
186 B
C

#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;
}