mirror of
https://github.com/fluencelabs/musl
synced 2025-06-29 22:51:55 +00:00
add bsd fgetln function
optimized to avoid allocation and return lines directly out of the stream buffer whenever possible.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user