projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
replace all remaining internal uses of pthread_self with __pthread_self
[oweals/musl.git]
/
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
}