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

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

	struct io_options opt = {
		.fnname = __func__,
		.string = (char*)s,
	};

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

/*
STDC(199901)
*/