arch/m68k-amiga: Define the gcc symbol 'start' instead of using .bss
[AROS.git] / compiler / clib / scanf.c
blob8506306a82392ecb6f8c7326800302567985b6d4
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function scanf().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <stdio.h>
12 #include <stdarg.h>
14 int scanf (
16 /* SYNOPSIS */
17 const char * format,
18 ...)
20 /* FUNCTION
22 INPUTS
24 RESULT
25 The number of converted parameters
27 NOTES
29 EXAMPLE
31 BUGS
33 SEE ALSO
34 fscanf(), vscanf(), vfscanf(), sscanf(), vsscanf()
36 INTERNALS
38 ******************************************************************************/
40 int retval;
41 va_list args;
43 va_start (args, format);
45 retval = vfscanf (stdin, format, args);
47 va_end (args);
49 fflush (stdout);
51 return retval;
52 } /* scanf */