Lely core libraries 1.9.2
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
31extern "C" {
32#endif
33
34#if !(_POSIX_C_SOURCE >= 200809L)
35
53ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream);
54
56ssize_t getline(char **lineptr, size_t *n, FILE *stream);
57
58#endif // !(_POSIX_C_SOURCE >= 200809L)
59
60#if !defined(_GNU_SOURCE) || defined(__MINGW32__)
61
78int asprintf(char **strp, const char *fmt, ...);
79
95int vasprintf(char **strp, const char *fmt, va_list ap);
96
97#endif // !_GNU_SOURCE || __MINGW32__
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....
ptrdiff_t ssize_t
Used for a count of bytes or an error indication.
Definition: types.h:43