Indentation fix, cleanup.
[AROS.git] / compiler / stdc / vfscanf.c
blob68a934a709bf0c12efb57af50c3b1a4c2bbaf2fe
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 Scan a stream and write the result in the parameters.
6 */
7 /* Original source from libnix */
8 #include <proto/dos.h>
9 #include <stdarg.h>
11 #include "__stdio.h"
13 /*****************************************************************************
15 NAME */
16 #include <stdio.h>
18 int vfscanf (
20 /* SYNOPSIS */
21 FILE * stream,
22 const char * format,
23 va_list args)
25 /* FUNCTION
26 Read the scream, scan it as the format specified and write the
27 result of the conversion into the specified arguments.
29 INPUTS
30 stream - A stream to read from
31 format - A scanf() format string.
32 args - A list of arguments for the results.
34 RESULT
35 The number of converted arguments.
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 ******************************************************************************/
49 Flush (stream->fh);
51 return __vcscan (stream, (int (*)(void *))fgetc, (int (*)(int, void *))ungetc, format, args);
52 } /* vfscanf */