home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / vfprintf.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  580 b   |  34 lines

  1. @node vfprintf, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6. #include <stdarg.h>
  7.  
  8. int vfprintf(FILE *file, const char *format, va_list arguments);
  9. @end example
  10.  
  11. @subheading Description
  12.  
  13. Sends formatted output from the @var{arguments} to the @var{file}. 
  14. @xref{printf}.
  15.  
  16. @subheading Return Value
  17.  
  18. The number of characters written.
  19.  
  20.  
  21. @subheading Example
  22.  
  23. @example
  24. void my_errmsg(char *format, ...)
  25. @{
  26.   va_list arg;
  27.  
  28.   va_start(arg, format);
  29.   fprintf(stderr, "my_errmsg: ");
  30.   vfprintf(stderr, format, arg);
  31.   va_end(arg);
  32. @}
  33. @end example
  34.