implement [v]swprintf

This commit is contained in:
Rich Felker
2011-03-18 09:19:09 -04:00
parent c35bb6645f
commit e18b563821
4 changed files with 63 additions and 3 deletions

14
src/stdio/swprintf.c Normal file
View File

@ -0,0 +1,14 @@
#include <stdio.h>
#include <stdarg.h>
#include <wchar.h>
int swprintf(wchar_t *s, size_t n, const wchar_t *fmt, ...)
{
int ret;
va_list ap;
va_start(ap, fmt);
ret = vswprintf(s, n, fmt, ap);
va_end(ap);
return ret;
}