From b2cfc4e2e71d0f0a5113ddfbd93c8285cc4d74e4 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 30 Sep 2003 17:47:41 +0000 Subject: Initial revision --- src/lib9/werrstr.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/lib9/werrstr.c (limited to 'src/lib9/werrstr.c') diff --git a/src/lib9/werrstr.c b/src/lib9/werrstr.c new file mode 100644 index 00000000..7fa1f2ea --- /dev/null +++ b/src/lib9/werrstr.c @@ -0,0 +1,13 @@ +#include + +void +werrstr(char *fmt, ...) +{ + va_list arg; + char buf[ERRMAX]; + + va_start(arg, fmt); + vseprint(buf, buf+ERRMAX, fmt, arg); + va_end(arg); + errstr(buf, ERRMAX); +} -- cgit v1.2.3