文件中的结构
struct ApRegFileHead
{
char *rHead;
unsigned int version;
unsigned int rezerv;
};
我试图将它与我的标准
进行比较int testFunc::FindHead(char *hmsg){
ApRegFileHead head1 = {hmsg,2,2};
int finheadflag = 0;
FilesSize();
if (fIn != NULL) {
fread(&head1, sizeof(head1), 1, fIn);
printf(head1.rHead);
if (head1.rHead == hmsg)
finheadflag = 1;
} else {
printf("File not open");
finheadflag = 0;
}
fclose(fIn);
return finheadflag;
}
文件右开
但这行printf(head1.rHead);得到谷歌测试错误:未知文件:错误:代码为0xc0000005的SEH异常抛入测试主体