while(fread(&stu, sizeof(stu),1,fp) == 1){
if(strcmp(s_id, stu.ID) == 0){
fflush(stdin);
gotoxy(print,12);printf("ID: ");gets(stu.ID);
gotoxy(print,13);printf("Name: ");gets(stu.name);
gotoxy(print,14);printf("Address: ");gets(stu.add);
gotoxy(print,15);printf("Parent's name: ");gets(stu.parname);
gotoxy(print,16);printf("Class: ");scanf("%d",&stu.Class);
gotoxy(print,17);printf("Phone Number: ");scanf("%ld",&stu.phone_no);
fseek(fp,-sizeof(stu), SEEK_CUR);
fwrite(&stu,sizeof(stu), 1, fp);
isFound = 1;
break;
how to eliminate the error?
fseek(fp,-sizeof(stu), SEEK_CUR);
help...!