]> git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/stdio/printf.c
WASI libc prototype implementation.
[wasi-libc.git] / libc-top-half / musl / src / stdio / printf.c
1 #include <stdio.h>
2 #include <stdarg.h>
3
4 int printf(const char *restrict fmt, ...)
5 {
6 int ret;
7 va_list ap;
8 va_start(ap, fmt);
9 ret = vfprintf(stdout, fmt, ap);
10 va_end(ap);
11 return ret;
12 }
13 #ifdef __wasilibc_unmodified_upstream
14 #else
15 weak_alias(printf, iprintf);
16 weak_alias(printf, printf_no_Lf);
17 #endif