词条 | dosexterr |
释义 | 函数名: 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:\"); printf(" Extended error: \\ %d\",info.exterror); printf(" Class: \\ %x\",info.class); printf(" Action: \\ %x\",info.action); printf(" Error Locus: \\ %x\",info.locus); return 0; } |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。