I got a problem using fgetchar to get data from a binary file. The content of the file is (only for testing, the real one is bigger)
Now i'm trying to read every byte using fgetcar. The result is
0xFFFFFFFF is EOF, the error seems to happen at 0xDA since replacing it with certain other values works - but then again with other values it doesn't work. Has anyone experience strange behavior of fgetchar?
Code:
44 21 3c da be 00 0a ff
Now i'm trying to read every byte using fgetcar. The result is
Code:
44 21 3c 1be 00 0a ff ffffffff
0xFFFFFFFF is EOF, the error seems to happen at 0xDA since replacing it with certain other values works - but then again with other values it doesn't work. Has anyone experience strange behavior of fgetchar?
Aucun commentaire:
Enregistrer un commentaire