diff options
Diffstat (limited to 'libc-top-half/musl/src/stdio/asprintf.c')
-rw-r--r-- | libc-top-half/musl/src/stdio/asprintf.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/stdio/asprintf.c b/libc-top-half/musl/src/stdio/asprintf.c new file mode 100644 index 0000000..4ec8353 --- /dev/null +++ b/libc-top-half/musl/src/stdio/asprintf.c @@ -0,0 +1,13 @@ +#define _GNU_SOURCE +#include <stdio.h> +#include <stdarg.h> + +int asprintf(char **s, const char *fmt, ...) +{ + int ret; + va_list ap; + va_start(ap, fmt); + ret = vasprintf(s, fmt, ap); + va_end(ap); + return ret; +} |