muimaster.library: support Listview_List in List
[AROS.git] / compiler / posixc / scanf.c
blob04acef2f7b75bbf8be9d4d967b40ea4a7ba27325
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function scanf().
6 */
8 #include <libraries/posixc.h>
10 #include <stdarg.h>
12 /*****************************************************************************
14 NAME */
15 #include <stdio.h>
17 int scanf (
19 /* SYNOPSIS */
20 const char * format,
21 ...)
23 /* FUNCTION
25 INPUTS
27 RESULT
28 The number of converted parameters
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
37 fscanf(), vscanf(), vfscanf(), stdc.library/sscanf(),
38 stdc.library/vsscanf()
40 INTERNALS
42 ******************************************************************************/
44 struct PosixCBase *PosixCBase = __aros_getbase_PosixCBase();
45 int retval;
46 va_list args;
48 va_start (args, format);
50 retval = vfscanf (PosixCBase->_stdin, format, args);
52 va_end (args);
54 return retval;
55 } /* scanf */