summaryrefslogtreecommitdiff
path: root/src/stdio/fscanf_s.c
blob: de7f9e9856bd69fee5a079d20c6b5d7bbdfd964a (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
#include "stdio.h"
#include "stdio.h"
#include "stdarg.h"

/** read formatted input from a file stream **/
int fscanf_s(FILE * restrict stream, const char * restrict format, ...)
{
	__C_EXT(1, 201112L);
        int retval;
        va_list ap;
        va_start(ap, format);
        retval = vfscanf_s(stream, format, ap);
        va_end(ap);
        return retval;
}

/***
The fn(fscanf) function reads formatted input from arg(stream). The format of
arg(format) at the variadic arguments is the same as that for fn(scanf).
***/

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

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

/*
CEXT1(201112)
*/