source:
asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/stdio/asprintf.c
Last change on this file was 352, checked in by , 6 years ago | |
---|---|
|
|
File size: 208 bytes |
Line | |
---|---|
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 | } |
Note:
See TracBrowser
for help on using the repository browser.