1 #include <stdio.h> 2 #include <stdarg.h> 3 printf(const char * restrict fmt,...)4int 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 // Changes to optimize printf/scanf when long double isn't needed 14 #else 15 weak_alias(printf, iprintf); 16 weak_alias(printf, __small_printf); 17 #endif 18