H:函数名: harderr功 能: 建立一个硬件错误处理程序用 法: void harderr(int (*fptr)();程序例:/*This program will trap disk errors and promptthe user for action. Try running it with nodisk in drive A: to invoke its functions.*/ #include #include #include #define IGNORE 0#define RETRY 1#define ABORT 2int buf500;/*define the error messages for trapping disk problems*/static char *err_msg = write protect, unknown unit, drive not ready