This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/1995] fprintf() + fmemopen() error (?)


------- Additional Comments From michael dot kerrisk at gmx dot net  2006-04-19 23:24 -------
Subject: Re:  fprintf() + fmemopen() error (?)

> Yeah, my preference is due to less buffer copying.

Thanks Ryan.

For the moment, the man page now reads:

       Attempts to write more  than  size  bytes  to  the  buffer
       result in an error.  (By default, such errors will only be
       visible when  the  stdio  buffer  is  flushed.   Disabling
       buffering  with  setbuf(fp, NULL)  may be useful to detect
       errors at the time of an output operation.  Alternatively,
       the  caller  can  explicitly  set  buf as the stdio stream
       buffer, at the same time informing stdio of  the  buffer's
       size, using setbuffer(fp, buf, size).)

Cheers,

Michael


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=1995

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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