1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdio.h> #include <stdlib.h> void callError(int num) { fprintf(stderr, "lpass: Sorry, there was an error in the program [#%d]\n", num); exit(3); } void printError(char *text) { fprintf(stderr, "%s", text); exit(4); }