From 617182734ca0beffa347747019d78b972e2038f9 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 11 Aug 2012 18:10:38 -0400 Subject: add bsd fgetln function optimized to avoid allocation and return lines directly out of the stream buffer whenever possible. --- include/stdio.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/stdio.h b/include/stdio.h index 3d22220f..19ab8bcd 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -172,6 +172,10 @@ int getw(FILE *); int putw(int, FILE *); #endif +#ifdef _BSD_SOURCE +char *fgetln(FILE *, size_t *); +#endif + #ifdef _GNU_SOURCE int asprintf(char **, const char *, ...); int vasprintf(char **, const char *, va_list); -- cgit v1.2.1