Code: Select all
fp1 = fopen(bin_one, "rb");
fp2 = fopen(bin_two, "rb");
next: x=fread(&k1,8,1,fp1); if (x<1) goto done;
fread(&k2,8,1,fp1);
fread(&k3,8,1,fp1);
fread(&k4,8,1,fp1);
fread(&k5,8,1,fp1);
fwrite(&k1,8,1,fp2);
fwrite(&k2,8,1,fp2);
fwrite(&k3,8,1,fp2);
fwrite(&k4,8,1,fp2);
fwrite(&k5,8,1,fp2);
goto next;
done: fclose(fp1);
fclose(fp2);
Why is that?
Windows ?