summaryrefslogtreecommitdiff
path: root/src/stdio/vfscanf.c
blob: 79694ab9b5c5a78a004f0dc8bd17e3207e95f051 (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 "_format.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)
*/