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

  1. /*-----------------------------------------------------------------------*
  2.  * filename - printf.c
  3.  *
  4.  * function(s)
  5.  *        printf - send formatted output to stdout
  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 <_printf.h>
  19. #include <_stdio.h>
  20.  
  21. /*---------------------------------------------------------------------*
  22.  
  23. Name            printf - send formatted output to stdout
  24.  
  25. Usage           int printf(const char *format, ...);
  26.  
  27. Prototype in    stdio.h
  28.  
  29. Description     sends formatted output to stdout
  30.  
  31. Return value    the number of bytes output.  In the event of an
  32.                 error, printf returns EOF.
  33.  
  34. *---------------------------------------------------------------------*/
  35. int cdecl _FARFUNC printf(const char *fmt, ...)
  36.   {
  37.   return( __vprinter ((putnF *)__fputn, stdout, fmt, (void _ss *) _va_ptr) );
  38.   }
  39.  
  40.