aboutsummaryrefslogtreecommitdiff
path: root/src/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
new file mode 100644
index 0000000..b3f2eb0
--- /dev/null
+++ b/src/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);
+}