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

int vsnprintf(char * restrict s, size_t n, const char *format, va_list arg)
{
	struct io_options opt = {
		.fnname = __func__,
		.string = s,
		.maxlen = n,
	};

	return __printf(&opt, format, arg);
}

/*
STDC(199901)
*/