projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
src
/
stdio
/
asprintf.c
1
#include <stdio.h>
2
#include <stdarg.h>
3
4
int vasprintf(char **, const char *, va_list);
5
6
int asprintf(char **s, const char *fmt, ...)
7
{
8
int ret;
9
va_list ap;
10
va_start(ap, fmt);
11
ret = vasprintf(s, fmt, ap);
12
va_end(ap);
13
return ret;
14
}