When I want to use the fwrite, it always didn't run well.
The bug is: if I give a hex value "0x0a" in a struct
member ( maybe wrong in common variables), when the
program use fwrite to write to a file, there will be a hex
value "0x0d" added before the "0x0a".
PS:"0x0d 0x0a" is the CR command.
maybe its the fault of micorsoft, but if it doesn't fix it, I
think we should write a new one. ( I test the WriteFile
winapi function, it works ok.)
Log in to post a comment.