03.07.2014, 21:45
(
Последний раз редактировалось Kwashiorkor; 03.07.2014 в 22:15.
)
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 experienced strange behavior of fgetchar? The return value should be either EOF (end of file) or [0;0xFF], yet 0x1BE (446) is being returned.
//Edit: colorization of some values
Код:
44 21 3c da be 00 0a ff
Код:
44 21 3c 1be 00 0a ff ffffffff
//Edit: colorization of some values