aboutsummaryrefslogtreecommitdiff
path: root/src/base/error/exits.c
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-11-12 09:22:01 -0800
committerNicholas <nbnoll@eml.cc>2021-11-12 09:22:01 -0800
commitce05175372a9ddca1a225db0765ace1127a39293 (patch)
tree5988b4d4f6b402e4953945886fc90aae11203df6 /src/base/error/exits.c
parentb375f3cdedb5b0e08745d100b40e38d2f8396a58 (diff)
chore: simplified organizational structurelaptop
Diffstat (limited to 'src/base/error/exits.c')
-rw-r--r--src/base/error/exits.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/base/error/exits.c b/src/base/error/exits.c
new file mode 100644
index 0000000..6be7d3b
--- /dev/null
+++ b/src/base/error/exits.c
@@ -0,0 +1,11 @@
+#include "internal.h"
+
+void
+exits(char *s)
+{
+ if(s == nil || *s == 0)
+ exit(0);
+
+ fputs(s, stderr);
+ exit(1);
+}