fprintf.c 297 B

1234567891011121314151617181920212223
  1. /*
  2. * fprintf - write output on a stream
  3. */
  4. /* $Id$ */
  5. #include <stdio.h>
  6. #include <stdarg.h>
  7. #include "loc_incl.h"
  8. int
  9. fprintf(FILE *stream, const char *format, ...)
  10. {
  11. va_list ap;
  12. int retval;
  13. va_start(ap, format);
  14. retval = _doprnt (format, ap, stream);
  15. va_end(ap);
  16. return retval;
  17. }