00001
00002
00003
00004
00005
00006
00007 #if __STDC__
00008 #include <stdarg.h>
00009 #else
00010 #include <varargs.h>
00011 #endif
00012 #include <system.h>
00013 #include "param.h"
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 int
00024 #if __STDC__
00025 print(char *fmt, ...)
00026 #else
00027 print(fmt, va_alist)
00028 char *fmt;
00029 va_dcl
00030 #endif
00031 {
00032 va_list args;
00033 char buf[SSIZE];
00034
00035 #if __STDC__
00036 va_start(args, fmt);
00037 #else
00038 va_start(args);
00039 #endif
00040 sys_write(STDOUT, buf, _format(buf, fmt, args));
00041 va_end(args);
00042 }