Bug: struct

Non-platform specific questions.

Bug: struct

Postby Fuzzy » Mon Dec 03, 2007 12:12 am

When fread or fwrite is used to read/write a struct, it appends an extra bytes to the end of the struct. This can be bad when reading and writing to file. In my case, I can work around it.

This may be typical behavior in C++

[edit] it seems that this is not unheard of and is NOT a bug. I will leave the post so that someday someone can see what i have learned.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron