xref: /plan9/sys/src/libc/9sys/werrstr.c (revision 219b2ee8daee37f4aad58d63f21287faa8e4ffdc)
1 #include <u.h>
2 #include <libc.h>
3 
4 #define	DOTDOT	(&fmt+1)
5 
6 void
7 werrstr(char *fmt, ...)
8 {
9 	int psave;
10 	char buf[ERRLEN];
11 
12 	extern int printcol;
13 
14 	psave = printcol;
15 	doprint(buf, buf+ERRLEN, fmt, DOTDOT);
16 	errstr(buf);
17 	printcol = psave;
18 }
19