diff options
Diffstat (limited to 'src/lib9/werrstr.c')
-rw-r--r-- | src/lib9/werrstr.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 <lib9.h> + +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); +} |