rework langinfo code for ABI compat and for use by time code
[musl] / src / stdio / asprintf.c
1 #define _GNU_SOURCE
2 #include <stdio.h>
3 #include <stdarg.h>
4
5 int asprintf(char **s, const char *fmt, ...)
6 {
7         int ret;
8         va_list ap;
9         va_start(ap, fmt);
10         ret = vasprintf(s, fmt, ap);
11         va_end(ap);
12         return ret;
13 }