summaryrefslogtreecommitdiff
path: root/src/wchar/vswprintf.c
blob: 429e0a530fae2a01a3baa5ccf548ca7e174ffb86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdarg.h>
#include <wchar.h>
#include "stdio/_stdio.h"

int vswprintf(wchar_t * restrict s, size_t n, const wchar_t * restrict format, va_list arg)
{
	int ret = 0;
	struct io_options opt = {0};
	opt.fnname = "vswprintf";
	opt.wstring = s;
	opt.maxlen = n;
	ret = __printf(&opt, (const char*)format, arg);
	return ret;
}

/*
STDC(199409)
*/