From 425ef692da7e74112f88f0b368f3286dba84f846 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Thu, 18 Jun 2020 19:45:40 -0700 Subject: feat: working parser for rc shell language --- sys/libn/error.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/libn/error.c') 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 #include +void +exits(char *s) +{ + if (s == nil || *s == 0) + exit(0); + + fputs(s, stderr); + exit(1); +} + void errorf(byte* fmt, ...) { -- cgit v1.2.1