summaryrefslogtreecommitdiff
path: root/src/stdio/vsnprintf.c
blob: f54a15a19f29dd6df8fedd19ed5bbe44ee174fd2 (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 "nonstd/io.h"

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

/*
STDC(199901)
*/