From ac79cbd424d2339ff34112e142d289a51f90d3a6 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 28 Sep 2020 15:37:00 +0300 Subject: init project --- handerror.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 handerror.c (limited to 'handerror.c') 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 +#include + +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); +} + -- cgit v1.2.3-18-g5258