printf.c 290 B

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