Upgraded GRUB2 to 2.00 release.
[AROS.git] / compiler / clib / scanf.c
blob75878660afa1f626ccfaa3fc7de836a1e13f8218
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function scanf().
6 */
8 #include <stdarg.h>
10 /*****************************************************************************
12 NAME */
13 #include <stdio.h>
15 int scanf (
17 /* SYNOPSIS */
18 const char * 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 int retval;
42 va_list args;
44 va_start (args, format);
46 retval = vfscanf (stdin, format, args);
48 va_end (args);
50 fflush (stdout);
52 return retval;
53 } /* scanf */