mirror of
https://github.com/fluencelabs/musl
synced 2025-05-04 11:32:14 +00:00
this implementation is extremely ugly and inefficient, but it avoids a good deal of code duplication and bloat. it may be cleaned up later to eliminate the remaining code duplication and some of the warts, but i don't really care about its performance. note that swprintf is not yet implemented.
14 lines
195 B
C
14 lines
195 B
C
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <wchar.h>
|
|
|
|
int wprintf(const wchar_t *fmt, ...)
|
|
{
|
|
int ret;
|
|
va_list ap;
|
|
va_start(ap, fmt);
|
|
ret = vwprintf(fmt, ap);
|
|
va_end(ap);
|
|
return ret;
|
|
}
|