aboutsummaryrefslogtreecommitdiff
path: root/sys/libn/error.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-04-19 09:23:31 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-04-19 09:23:31 -0700
commit60ce7fba21a6d37c0acbe152039fbc3d0e692bf0 (patch)
tree73fa0295dace25c23a00f4ec4e654b4f4fb85619 /sys/libn/error.c
parent1ae9a10d56fca8fe585e77533c49e5c9d680ff12 (diff)
chore: reorganized structure to allow for more parallel projects
Diffstat (limited to 'sys/libn/error.c')
-rw-r--r--sys/libn/error.c14
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);
+}