C语言函数大全(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,unknown command,data error (CRC)