diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-06-18 19:45:40 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-06-18 19:45:40 -0700 |
commit | 425ef692da7e74112f88f0b368f3286dba84f846 (patch) | |
tree | d45729e90010e8d8c539031c3b72165f6884575d /sys/libn/error.c | |
parent | 0522b4bf4e125b7ceb67f7177db692aed3a0ebf9 (diff) |
feat: working parser for rc shell language
Diffstat (limited to 'sys/libn/error.c')
-rw-r--r-- | sys/libn/error.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/libn/error.c b/sys/libn/error.c index 95a534a..a9d684c 100644 --- a/sys/libn/error.c +++ b/sys/libn/error.c @@ -1,6 +1,16 @@ #include <u.h> #include <libn.h> +void +exits(char *s) +{ + if (s == nil || *s == 0) + exit(0); + + fputs(s, stderr); + exit(1); +} + void errorf(byte* fmt, ...) { |