home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / CLIB1.ZIP / PRINTF.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.5 KB  |  41 lines

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