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 }
#define va_end(v)
Definition: stdarg.h:9
#define va_start(v, l)
Definition: stdarg.h:8
__builtin_va_list va_list
Definition: stdarg.h:13
int asprintf(char **string, const char *fmt,...)
Definition: asprintf.c:7
int vasprintf(char **string, const char *fmt, va_list arg_list)
Definition: vasprintf.c:8