Completely unexplicable (to me ;) behaviour of read (vs fread)

Paolo Carlini pcarlini@unitus.it
Sat Mar 8 22:29:00 GMT 2003


Paolo Carlini wrote:

> The big mistery is that read (vs fread) in this situation returns _zero_
> instead of one! No chars are read.

Ok, I got it.

It's simply that read and write go with lseek.

Paolo.



More information about the Libstdc++ mailing list