From 80c5b9b5eeb09230a6c35f0aec9ba7ef3ace08b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 4 Oct 2010 12:37:48 +0000 Subject: [PATCH] * Added prototypes for getline(), and getdelim(). This fixes bug #6646. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38880 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/stdio.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/headers/posix/stdio.h b/headers/posix/stdio.h index b1853fe590..0188f87d0f 100644 --- a/headers/posix/stdio.h +++ b/headers/posix/stdio.h @@ -1,5 +1,5 @@ /* - * Copyright 2004-2009, Haiku Inc. All Rights Reserved. + * Copyright 2004-2010, Haiku Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _STDIO_H_ @@ -141,6 +141,10 @@ extern int fgetc(FILE *stream); extern char *gets(char *buffer); extern char *fgets(char *string, int stringLength, FILE *stream); +extern ssize_t getdelim(char **_line, size_t *_length, int delimiter, + FILE *stream); +extern ssize_t getline(char **_line, size_t *_length, FILE *stream); + /* formatted I/O */ extern int printf(char const *format, ...) __PRINTFLIKE(1,2); extern int fprintf(FILE *stream, char const *format, ...) __PRINTFLIKE(2,3); @@ -176,4 +180,5 @@ extern char *tmpnam_r(char *nameBuffer); } #endif + #endif /* _STDIO_H_ */