Lely core libraries  2.3.4
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/features.h>
26 
27 #if !LELY_NO_STDIO
28 
29 #include <lely/libc/sys/types.h>
30 
31 #include <stdarg.h>
32 #include <stdio.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 #if !(_POSIX_C_SOURCE >= 200809L)
39 
57 ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream);
58 
60 ssize_t getline(char **lineptr, size_t *n, FILE *stream);
61 
62 #endif // !(_POSIX_C_SOURCE >= 200809L)
63 
64 #if !defined(_GNU_SOURCE)
65 
82 int asprintf(char **strp, const char *fmt, ...);
83 
99 int vasprintf(char **strp, const char *fmt, va_list ap);
100 
101 #endif // !_GNU_SOURCE
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #endif // !LELY_NO_STDIO
108 
109 #endif // !LELY_LIBC_STDIO_H_
features.h
types.h
vasprintf
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:116
stdio.h
asprintf
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:106