home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / clib / fprintf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-09  |  1003 b   |  61 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: fprintf.c,v 1.2 1996/12/11 11:22:35 aros Exp $
  4.  
  5.     Desc: ANSI C function fprintf()
  6.     Lang: english
  7. */
  8. #include <stdarg.h>
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13. #include <stdio.h>
  14.  
  15.     int fprintf (
  16.  
  17. /*  SYNOPSIS */
  18.     FILE       * fh,
  19.     const char * format,
  20.     ...)
  21.  
  22. /*  FUNCTION
  23.     Format a string with the specified arguments and write it to
  24.     the stream.
  25.  
  26.     INPUTS
  27.     fh - Write to this stream
  28.     format - How to format the arguments
  29.     ... - The additional arguments
  30.  
  31.     RESULT
  32.     The number of characters written to the stream or EOF on error.
  33.  
  34.     NOTES
  35.  
  36.     EXAMPLE
  37.  
  38.     BUGS
  39.  
  40.     SEE ALSO
  41.  
  42.     INTERNALS
  43.  
  44.     HISTORY
  45.     10.12.1996 digulla created
  46.  
  47. ******************************************************************************/
  48. {
  49.     int     retval;
  50.     va_list args;
  51.  
  52.     va_start (args, format);
  53.  
  54.     retval = vfprintf (fh, format, args);
  55.  
  56.     va_end (args);
  57.  
  58.     return retval;
  59. } /* fprintf */
  60.  
  61.