aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/exits.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/exits.c')
-rw-r--r--src/lib9/exits.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib9/exits.c b/src/lib9/exits.c
new file mode 100644
index 00000000..a449f68e
--- /dev/null
+++ b/src/lib9/exits.c
@@ -0,0 +1,10 @@
+#include <lib9.h>
+
+void
+exits(char *s)
+{
+ if(s && *s)
+ exit(1);
+ exit(0);
+}
+