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

int vsnprintf_s(char * restrict s, rsize_t n, const char * restrict format, va_list arg)
{
	SIGNAL_SAFE(0);
	struct io_options opt = {
		.fnname = __func__,
		.string = s,
		.maxlen = n,
	};
	return __printf(&opt, format, arg);
}

/*
CEXT1(201112)
*/