implement [v]swprintf
This commit is contained in:
parent
c35bb6645f
commit
e18b563821
4 changed files with 63 additions and 3 deletions
14
src/stdio/swprintf.c
Normal file
14
src/stdio/swprintf.c
Normal 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;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue