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

int vsnprintf_s(char * restrict s, rsize_t n, const char * restrict format, va_list arg)
{
	SIGNAL_SAFE(0);
	ASSERT_NOOVERLAP(s, n, format, strlen(format));

	struct io_options opt = {
		.fnname = __func__,
		.string = s,
		.maxlen = n,
	};
	return __printf(&opt, format, arg);
}

/*
CEXT1(201112)
*/