Root/
Source at commit 1321 created 12 years 9 months ago. By meklort, Add __extendsfdf2 from LLVM | |
---|---|
1 | /*␊ |
2 | * sprintf.c␊ |
3 | */␊ |
4 | #include <stdarg.h>␊ |
5 | #include <stdio.h>␊ |
6 | ␊ |
7 | int sprintf(char *buffer, const char *format, ...)␊ |
8 | {␊ |
9 | ␉va_list ap;␊ |
10 | ␉int rv;␊ |
11 | ␊ |
12 | ␉va_start(ap, format);␊ |
13 | ␉rv = vsnprintf(buffer, ~(size_t) 0, format, ap);␊ |
14 | ␉va_end(ap);␊ |
15 | ␊ |
16 | ␉return rv;␊ |
17 | }␊ |
18 |