From 58214ec5f982c1b97aadce254c958a5f922c9724 Mon Sep 17 00:00:00 2001 From: wrmr Date: Sat, 2 Nov 2024 15:10:41 -0500 Subject: split main.c in several places, began work on design doc --- err.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 err.c (limited to 'err.c') 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 +#include +#include "err.h" + +void perr(const char *s) { + fprintf(stderr, "%s\n", s); +} + +void efatal(const char *s) { + perror(s); + exit(1); +} -- cgit 1.4.1-2-gfad0