define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / compiler / clib / fscanf.c
bloba453d07999e32c1ff2cc2adf5dff9446635fed3d
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C 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 */