revert between 56095 -> 55830 in arch
[AROS.git] / compiler / posixc / fscanf.c
blob82d12953af2bb6dbb7980e309ec0fe98d63d9b4c
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function fscanf().
6 */
8 #include <stdarg.h>
10 /*****************************************************************************
12 NAME */
13 #include <stdio.h>
15 int fscanf (
17 /* SYNOPSIS */
18 FILE * fh,
19 const char * format,
20 ...)
22 /* FUNCTION
23 Scan a string with the specified arguments and write the results
24 in the specified parameters.
26 INPUTS
27 fh - Read from this stream
28 format - How to convert the input into the arguments
29 ... - Write the result in these arguments
31 RESULT
32 The number of converted arguments.
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
41 scanf()
43 INTERNALS
45 ******************************************************************************/
47 int retval;
48 va_list args;
50 va_start (args, format);
52 retval = vfscanf (fh, format, args);
54 va_end (args);
56 return retval;
57 } /* fscanf */