This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]