dosexterr

dosexterr是個函式名。可以獲取擴展DOS錯誤信息。

解釋

函式名: dosexterr
功能: 獲取擴展DOS錯誤信息

用法: int dosexterr(struct DOSERR *dblkp);

程式例

#include <stdio.h>
#include <dos.h>
int main(void)
{
FILE *fp;
struct DOSERROR info;
fp = fopen("perror.dat","r");
if (!fp) perror("Unable to open file for
reading");
dosexterr(&info);
printf("Extended DOS error \
information:\n");
printf(" Extended error: \
%d\n",info.exterror);
printf(" Class: \
%x\n",info.class);
printf(" Action: \
%x\n",info.action);
printf("Error Locus: \
%x\n",info.locus);
return 0;
}

相關詞條

相關搜尋

熱門詞條

聯絡我們