verifyicb.c

来自「存取UDF格式的DVD光盘的驱动程序」· C语言 代码 · 共 39 行

C
39
字号
#include "../nsrHdrs/nsr.h"#include <stdlib.h>#include <stdio.h>#include <string.h>#include <ctype.h>#include "chkudf.h"#include "protos.h"/* *  Read a File Entry and extract the basics. */int checkICB(struct FileEntry *fe, struct long_ad FE, int dir){  if (fe) {    if (!CheckTag((struct tag *)fe, U_endian32(FE.Location_LBN), TAGID_FILE_ENTRY, 16, blocksize)) {      printf("(%10d) ", U_endian32(fe->InfoLengthL));    }    if (dir && fe->sICBTag.FileType != FILE_TYPE_DIRECTORY) {       printf("[Type: %d] ", fe->sICBTag.FileType);    }    if (!dir && fe->sICBTag.FileType != FILE_TYPE_RAW) {       printf("[Type: %d] ", fe->sICBTag.FileType);    }  } else {    Error.Code = ERR_READ;    Error.Sector = U_endian32(FE.Location_LBN);  }/* Verify that the information length is consistent with the descriptors.   Verify the recorded sectors field. */  DumpError();  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?