Lely core libraries  2.2.5
stdio.h
Go to the documentation of this file.
1 
22 #ifndef LELY_LIBC_STDIO_H_
23 #define LELY_LIBC_STDIO_H_
24 
25 #include <lely/libc/sys/types.h>
26 
27 #include <stdarg.h>
28 #include <stdio.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #if !(_POSIX_C_SOURCE >= 200809L)
35 
53 ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream);
54 
56 ssize_t getline(char **lineptr, size_t *n, FILE *stream);
57 
58 #endif // !(_POSIX_C_SOURCE >= 200809L)
59 
60 #if !defined(_GNU_SOURCE)
61 
78 int asprintf(char **strp, const char *fmt, ...);
79 
95 int vasprintf(char **strp, const char *fmt, va_list ap);
96 
97 #endif // !_GNU_SOURCE
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif // !LELY_LIBC_STDIO_H_
This header file is part of the C11 and POSIX compatibility library; it includes <stdio....
int asprintf(char **strp, const char *fmt,...)
Equivalent to sprintf(), except that it allocates a string large enough to hold the output,...
Definition: stdio.c:103
int vasprintf(char **strp, const char *fmt, va_list ap)
Equivalent to vsprintf(), except that it allocates a string large enough to hold the output,...
Definition: stdio.c:113
This header file is part of the C11 and POSIX compatibility library; it includes <sys/types....