Include output of runtime tests in build log, and delete archive if
[AROS.git] / compiler / stdc / scanf.c
blob7e0e698365b8978443a81d339d598efb9adfb65e
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function scanf().
6 */
7 #include <libraries/stdcio.h>
9 /*****************************************************************************
11 NAME */
12 #include <stdio.h>
13 #include <stdarg.h>
15 int scanf (
17 /* SYNOPSIS */
18 const char * restrict format,
19 ...)
21 /* FUNCTION
23 INPUTS
25 RESULT
26 The number of converted parameters
28 NOTES
30 EXAMPLE
32 BUGS
34 SEE ALSO
35 fscanf(), vscanf(), vfscanf(), sscanf(), vsscanf()
37 INTERNALS
39 ******************************************************************************/
41 struct StdCIOBase *StdCIOBase = __aros_getbase_StdCIOBase();
42 int retval;
43 va_list args;
45 va_start (args, format);
47 retval = vfscanf (StdCIOBase->_stdin, format, args);
49 va_end (args);
51 return retval;
52 } /* scanf */