doprnt.c 454 B

123456789101112131415161718192021222324252627
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #include <system.h>
  7. #include "print.h"
  8. #include "param.h"
  9. /*FORMAT1 $
  10. %s = char *
  11. %l = long
  12. %c = int
  13. %[uxbo] = unsigned int
  14. %d = int
  15. $ */
  16. void
  17. doprnt(fp, fmt, argp)
  18. File *fp;
  19. char *fmt;
  20. va_list argp;
  21. {
  22. char buf[SSIZE];
  23. sys_write(fp, buf, _format(buf, fmt, argp));
  24. }