diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-17 18:04:04 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-17 18:04:04 -0700 |
commit | 65264ba6d1f7e7402009f33b60e3263bf1f02498 (patch) | |
tree | 9911d9fd925940d61a75a48817b375b96a637ddc /src/error.c |
init: prototype of code skeleton
Diffstat (limited to 'src/error.c')
-rw-r--r-- | src/error.c | 14 |
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); +} |