www.delorie.com/djgpp/bugs/show.cgi | search |
I successfully open file with fopen in binary mode. Then I read some binary data with fread to variable (of type struct) where I have more variables (some of type unsigned char and unsigned short int). And vaules in unsigned short int isn't right. In BC++ 3 it works good.
Even from the vague description given, it's rather clear this isn't a bug in DJGPP. It's very probably the usual structure element alignment problem. I'll mail the bug submitter about it right now...
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |