> If fwrite() fails with a short element count, will ferror() always be > on true? I am not sure we can rely on this. > > And also if fwrite() fails is it guaranteed that it will continue to > fail on all future calls?
Yes, it is. If an error is produced in a stream, the value of error associated with the strem is kept until is cleared with a clearerr call. Regards,
