diff options
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); +} |