make armeb specific header (set AROS_BIG_ENDIAN to one)
[AROS.git] / compiler / stdc / fprintf.c
blob8bee4aa7f63f3d515d20c2d488f8008f4311ea73
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function fprintf().
6 */
8 #include <stdarg.h>
10 /*****************************************************************************
12 NAME */
13 #include <stdio.h>
15 int fprintf (
17 /* SYNOPSIS */
18 FILE * restrict fh,
19 const char * restrict format,
20 ...)
22 /* FUNCTION
23 Format a string with the specified arguments and write it to
24 the stream.
26 INPUTS
27 fh - Write to this stream
28 format - How to format the arguments
29 ... - The additional arguments
31 RESULT
32 The number of characters written to the stream or EOF on error.
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 ******************************************************************************/
46 int retval;
47 va_list args;
49 va_start (args, format);
51 retval = vfprintf (fh, format, args);
53 va_end (args);
55 return retval;
56 } /* fprintf */