home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC.ZIP / FPRINTF.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.1 KB  |  40 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - fprintf.c
  3.  *
  4.  * function(s)
  5.  *        fprintf - sends formatted output to a stream
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1987, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #include <stdio.h>
  18. #include <_stdio.h>
  19. #include <_printf.h>
  20.  
  21. /*---------------------------------------------------------------------*
  22.  
  23. Name            fprintf - sends formatted output to a stream
  24.  
  25. Usage           int fprintf(FILE *stream, const char *format [,argument, ...]);
  26.  
  27. Prototype in    stdio.h
  28.  
  29. Description     member of the printf family.  fprintf send its output
  30.                 to the named stream.
  31.  
  32. Return value    success : the number of bytes output.
  33.                 error : EOF
  34.  
  35. *------------------------------------------------------------------------*/
  36. int cdecl _FARFUNC fprintf (FILE *F, const char *fmt, ...)
  37.   {
  38.   return( __vprinter ((putnF *)__fputn, F, fmt, (void _ss *) _va_ptr ) );
  39.   }
  40.