Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
asprintf.c
Go to the documentation of this file.
1
// From musl libc
2
3
#define _GNU_SOURCE
4
#include <
stdarg.h
>
5
#include <
stdio.h
>
6
7
int
asprintf
(
char
**
string
,
const
char
* fmt, ...)
8
{
9
int
r;
10
va_list
ap;
11
12
va_start
(ap, fmt);
13
r =
vasprintf
(
string
, fmt, ap);
14
va_end
(ap);
15
16
return
r;
17
}
va_end
#define va_end(v)
Definition:
stdarg.h:9
va_start
#define va_start(v, l)
Definition:
stdarg.h:8
stdarg.h
stdio.h
va_list
__builtin_va_list va_list
Definition:
stdarg.h:13
asprintf
int asprintf(char **string, const char *fmt,...)
Definition:
asprintf.c:7
vasprintf
int vasprintf(char **string, const char *fmt, va_list arg_list)
Definition:
vasprintf.c:8
src
stdio
asprintf.c
Generated by
1.8.15