diff options
Diffstat (limited to 'src/user/lib/err.c')
-rw-r--r-- | src/user/lib/err.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/user/lib/err.c b/src/user/lib/err.c index 7684b6d..7a220fe 100644 --- a/src/user/lib/err.c +++ b/src/user/lib/err.c @@ -20,6 +20,20 @@ _Noreturn void errx(int ret, const char *fmt, ...) { exit(ret); } +void warn(const char *fmt, ...) { + va_list args; + va_start(args, fmt); + vwarn(fmt, args); + va_end(args); +} + +void warnx(const char *fmt, ...) { + va_list args; + va_start(args, fmt); + vwarnx(fmt, args); + va_end(args); +} + void vwarn(const char *fmt, va_list args) { fprintf(stderr, "%s: ", getprogname()); if (fmt) { |