revert between 56095 -> 55830 in arch
[AROS.git] / compiler / stdc / vfprintf.c
blob06f21d0eeeb3b964ac2c68e7fa2ab00c3a5b194c
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 Format a string and call a usercallback to output each char.
6 */
7 /* Original source from libnix */
8 #include <stdarg.h>
10 #define DEBUG 0
11 #include <aros/debug.h>
13 /*****************************************************************************
15 NAME */
16 #include <stdio.h>
18 int vfprintf (
20 /* SYNOPSIS */
21 FILE * restrict stream,
22 const char * restrict format,
23 va_list args)
25 /* FUNCTION
26 Format a list of arguments and print them on the specified stream.
28 INPUTS
29 stream - A stream on which one can write
30 format - A printf() format string.
31 args - A list of arguments for the format string.
33 RESULT
34 The number of characters written.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 INTERNALS
46 ******************************************************************************/
48 D(bug("Calling __vcformat(stream=%x, fputc=%x, format='%s', ...)\n",
49 stream, fputc, format
50 ));
52 return __vcformat (stream, (int (*)(int, void *))fputc, format, args);
53 } /* vfprintf */