diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-21 21:17:17 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-21 21:17:17 +0100 |
| commit | c0a7c5ddcb9e0e98f6d981448e7c54fab6621327 (patch) | |
| tree | d0307493efe92924ad267f6a0c5efb0fc1e16bc3 /util.c | |
first sketch
Diffstat (limited to 'util.c')
| -rw-r--r-- | util.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +#include <stdio.h> +#include <stdlib.h> + +#include "util.h" + +void +die(const char *error) +{ + fprintf(stderr, "error: %s\n", error); + exit(-1); +} |