summaryrefslogtreecommitdiff
path: root/getlinetest.c
diff options
context:
space:
mode:
Diffstat (limited to 'getlinetest.c')
-rw-r--r--getlinetest.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/getlinetest.c b/getlinetest.c
new file mode 100644
index 0000000..2a21a50
--- /dev/null
+++ b/getlinetest.c
@@ -0,0 +1,13 @@
+#define _GNU_SOURCE
+#include <stdio.h>
+#include <sys/types.h>
+
+int main()
+{
+ ssize_t count = 0;
+ size_t n = 0;
+ char **lineptr = NULL;
+ FILE *stream = NULL;
+
+ count = getline(lineptr, &n, stream);
+}