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
35extern "C" {
36#endif
37
38#if !(_POSIX_C_SOURCE >= 200809L)
39
57ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream);
58
60ssize_t getline(char **lineptr, size_t *n, FILE *stream);
61
62#endif // !(_POSIX_C_SOURCE >= 200809L)
63
64#if !defined(_GNU_SOURCE)
65
82int asprintf(char **strp, const char *fmt, ...);
83
99int 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_
This header file is part of the Lely libraries; it contains the compiler feature definitions.
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:106
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
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