summaryrefslogtreecommitdiff
path: root/src/stdio/scanf_s.c
blob: add9f7031461804acdf63b96b808d8ccaeb37cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <stdio.h>
#include <stdarg.h>
#include "_format.h"

/** read formatted input **/
int scanf_s(const char * restrict format, ...)
{
	SIGNAL_SAFE(0);

	va_list ap;
	va_start(ap, format);
	int ret = vfscanf_s(stdin, format, ap);
	va_end(ap);
	return ret;
}

/***
The fn(scanf) function reads formatted input from macro(stdin).

FIXME: scanf format goes here
***/

/* UNSPECIFIED: ??? */
/* UNDEFINED: ??? */
/* IMPLEMENTATION: ??? */
/* LOCALE: ??? */

/* RETURN(EOF): an input failure occurred */
/* RETURN: the number of input items assigned */

/*
CEXT1(201112)
*/