diff options
Diffstat (limited to 'sys/libn/error.c')
-rw-r--r-- | sys/libn/error.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/libn/error.c b/sys/libn/error.c new file mode 100644 index 0000000..b3f2eb0 --- /dev/null +++ b/sys/libn/error.c @@ -0,0 +1,14 @@ +#include <u.h> + +void +errorf(const byte* fmt, ...) +{ + va_list args; + va_start(args, fmt); + + printf("error: "); + vprintf(fmt, args); + printf("\n"); + + va_end(args); +} |