aboutsummaryrefslogtreecommitdiffstats
path: root/handerror.c
blob: 482b467e340eb47b404527105fe568189170a5c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}