diff options
author | wrmr | 2024-11-02 15:10:41 -0500 |
---|---|---|
committer | wrmr | 2024-11-02 15:10:41 -0500 |
commit | 58214ec5f982c1b97aadce254c958a5f922c9724 (patch) | |
tree | ae64cb697531b0ee619350645e47adf186febfe7 /err.c | |
parent | df1b0b23569e5244d5b9398802fec6435a995368 (diff) |
split main.c in several places, began work on design doc
Diffstat (limited to 'err.c')
-rw-r--r-- | err.c | 12 |
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); +} |