]> git.cameronkatri.com Git - mandoc.git/blob - test-getline.c
In groff commit 78e66624 on May 7 20:15:33 2021 +1000,
[mandoc.git] / test-getline.c
1 #include <sys/types.h>
2 #include <stdio.h>
3 #include <unistd.h>
4
5 int
6 main(void)
7 {
8 char *line = NULL;
9 size_t linesz = 0;
10
11 fclose(stdin);
12 return getline(&line, &linesz, stdin) != -1;
13 }