diff options
author | 2015-11-07 17:58:55 +0000 | |
---|---|---|
committer | 2015-11-07 17:58:55 +0000 | |
commit | 52461cacec49af96b6b0643f4322e9fc0b36d403 (patch) | |
tree | aaf6acf44516521f4f6604b822aecfff87e96d54 /test-fgetln.c | |
parent | b897019f5696c540f454bcb428d44ad31ef65559 (diff) | |
download | mandoc-52461cacec49af96b6b0643f4322e9fc0b36d403.tar.gz mandoc-52461cacec49af96b6b0643f4322e9fc0b36d403.tar.zst mandoc-52461cacec49af96b6b0643f4322e9fc0b36d403.zip |
Modernization, no functional change intended:
Use the POSIX function getline(3) rather than the slightly
dangerous BSD function fgetln(3).
Remove the related compatibility code.
Diffstat (limited to 'test-fgetln.c')
-rw-r--r-- | test-fgetln.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test-fgetln.c b/test-fgetln.c deleted file mode 100644 index c2abf06d..00000000 --- a/test-fgetln.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <sys/types.h> -#include <stdio.h> -#include <unistd.h> - -int -main(void) -{ - size_t sz; - fclose(stdin); - return fgetln(stdin, &sz) != NULL; -} |