db7dcab7b1
As documented in the Linux manpage: https://man7.org/linux/man-pages/man3/asprintf.3.html Change-Id: I855b3310ae9111ddf48c13c26b9eb496c200accb Reviewed-on: https://review.haiku-os.org/c/haiku/+/3554 Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
35 lines
544 B
C
35 lines
544 B
C
/*
|
|
* Copyright 2006-2010 Haiku Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _BSD_STDIO_H_
|
|
#define _BSD_STDIO_H_
|
|
|
|
|
|
#include_next <stdio.h>
|
|
#include <features.h>
|
|
|
|
|
|
#if defined(_DEFAULT_SOURCE) || defined(_GNU_SOURCE)
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
char *fgetln(FILE *stream, size_t *_length);
|
|
|
|
int asprintf(char **ret, char const *format, ...) __PRINTFLIKE(2,3);
|
|
int vasprintf(char **ret, char const *format, va_list ap);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif /* _BSD_STDIO_H_ */
|