github.com/afumu/libc@v0.0.6/musl/src/stdio/asprintf.c (about)

     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  }