add PTHREAD_NULL
[musl.git] / src / stdio / sprintf.c
blob9dff524c0925ed7a6903125cccbd4647b1bcf722
1 #include <stdio.h>
2 #include <stdarg.h>
4 int sprintf(char *restrict s, const char *restrict fmt, ...)
6 int ret;
7 va_list ap;
8 va_start(ap, fmt);
9 ret = vsprintf(s, fmt, ap);
10 va_end(ap);
11 return ret;