xref: /plan9-contrib/sys/src/boot/vt4/print.c (revision da917039c7f233c1a27d212bf012c6afa758af39)
1 #include "include.h"
2 
3 int
print(char * fmt,...)4 print(char* fmt, ...)
5 {
6 	int n;
7 	va_list args;
8 	char buf[PRINTSIZE];
9 
10 	va_start(args, fmt);
11 	n = vseprint(buf, buf+sizeof(buf), fmt, args) - buf;
12 	va_end(args);
13 
14 	vuartputs(buf, n);
15 	return n;
16 }
17 
18 void
_fmtlock(void)19 _fmtlock(void)
20 {
21 }
22 
23 void
_fmtunlock(void)24 _fmtunlock(void)
25 {
26 }
27 
28 int
_efgfmt(Fmt *)29 _efgfmt(Fmt*)
30 {
31 	return -1;
32 }
33 
34 int
errfmt(Fmt *)35 errfmt(Fmt*)
36 {
37 	return -1;
38 }
39