diff options
Diffstat (limited to 'handerror.c')
-rw-r--r-- | handerror.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/handerror.c b/handerror.c new file mode 100644 index 0000000..482b467 --- /dev/null +++ b/handerror.c @@ -0,0 +1,15 @@ +#include <stdio.h> +#include <stdlib.h> + +void call_error(int num) +{ + fprintf(stderr, "Sorry, there was an error in the program [#%d]\n", num); + exit(3); +} + +void print_error(char *text) +{ + fprintf(stderr, "%s", text); + exit(4); +} + |