summaryrefslogtreecommitdiff
path: root/src/stdio/vfscanf.c
blob: af0dc2894e662c73eb2bcb44c1d624290d9cf276 (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 vfscanf(FILE * restrict stream, const char * restrict format, va_list arg)
{
	SIGNAL_SAFE(0);
	ASSERT_NOOVERLAP(stream, sizeof(*stream), format, strlen(format));

	struct io_options opt = {
		.fnname = __func__,
		.stream = stream,
	};

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

/*
STDC(199901)
*/