I read the MSDN entry on fwrite() and it says that fwrite may return a number less than count if there was an error. Since I don't like the sound of may I just wanted to run this by someone:
Is that a / the ("best") way to check if fwrite has failed?Code:if (target & LOG_ENGINE) if (fwrite(buffer, sizeof *buffer, strlen(buffer), engineLog) < strlen(buffer)) return gfalse;



LinkBack URL
About LinkBacks


