Hi there,=20
I am trying to add an error handler for a C program for a class =
assignment. we haven't gone over errorhandling but i'm getting that =
awful message
"This program has performed and illegal operation and will be shut down" =
in regards to this statement.
if((fp =3D fopen("data.dat", "r")) =3D=3D NULL)
basically if no file exits to read, I get the message.
What I have so far is below, but I keep getting a message from the =
compiler stating that _HARD_IGNORE not declared. I thought this was a =
constant in the dos.h library??
way confused....does it make sense to do this at all?
void handler(unsigned device_error, unsigned error_code,
unsigned *device_header)
{
cputs("Critical error resuming program\n");
_hardreturn(_HARDERR_IGNORE); =20
}
|