summary refs log tree commit diff
path: root/err.c
diff options
context:
space:
mode:
authorwrmr2024-11-02 15:10:41 -0500
committerwrmr2024-11-02 15:10:41 -0500
commit58214ec5f982c1b97aadce254c958a5f922c9724 (patch)
treeae64cb697531b0ee619350645e47adf186febfe7 /err.c
parentdf1b0b23569e5244d5b9398802fec6435a995368 (diff)
split main.c in several places, began work on design doc
Diffstat (limited to 'err.c')
-rw-r--r--err.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/err.c b/err.c
new file mode 100644
index 0000000..0b98a2b
--- /dev/null
+++ b/err.c
@@ -0,0 +1,12 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include "err.h"
+
+void perr(const char *s) {
+	fprintf(stderr, "%s\n", s);
+}
+
+void efatal(const char *s) {
+	perror(s);
+	exit(1);
+}