From d64e81c75cd13dd80bd70dbcb27aefa608f49354 Mon Sep 17 00:00:00 2001 From: Nemanja Boric Date: Thu, 26 Jan 2017 18:52:49 +0100 Subject: [PATCH] Add bindings for POSIX getdelim and getline --- src/core/sys/posix/stdio.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/sys/posix/stdio.d b/src/core/sys/posix/stdio.d index 4fb3655888..c085c862ce 100644 --- a/src/core/sys/posix/stdio.d +++ b/src/core/sys/posix/stdio.d @@ -344,3 +344,7 @@ unittest assert(memcmp(ptr, testdata.ptr, testdata.length*wchar_t.sizeof) == 0); assert(fclose(f) == 0); } + + +ssize_t getdelim (char** lineptr, size_t* n, int delimiter, FILE* stream); +ssize_t getline (char** lineptr, size_t* n, FILE* stream);