From 60ce7fba21a6d37c0acbe152039fbc3d0e692bf0 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 19 Apr 2020 09:23:31 -0700 Subject: chore: reorganized structure to allow for more parallel projects --- sys/libn/error.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sys/libn/error.c (limited to 'sys/libn/error.c') 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 + +void +errorf(const byte* fmt, ...) +{ + va_list args; + va_start(args, fmt); + + printf("error: "); + vprintf(fmt, args); + printf("\n"); + + va_end(args); +} -- cgit v1.2.1