23,125
社区成员
发帖
与我相关
我的任务
分享
while((err_log = fread(&scr, sizeof(scr), 1 , fptr)) == 1)
{
if(err_log < 1)
perror("fread scr");
printf("feof=%d\n",feof(fptr));
printf("%s, %d\n", __FUNCTION__, __LINE__);
setScreen(scr);
printf("%s, %d\n", __FUNCTION__, __LINE__);
HEAD head;
while(1)
{
err_log = fread(&head, sizeof(head), 1, fptr); //读取头部
if(err_log < 1)
{
perror("fread head");
break;
}
typedef unsigned short WORD;
struct HEAD
{
WORD sizeofThis;
WORD FileType;
WORD FileNo;
};