This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1995] fprintf() + fmemopen() error (?)
- From: "michael dot kerrisk at gmx dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 19 Apr 2006 02:14:54 -0000
- Subject: [Bug libc/1995] fprintf() + fmemopen() error (?)
- References: <20051208133403.1995.michael.kerrisk@gmx.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From michael dot kerrisk at gmx dot net 2006-04-19 02:14 -------
Subject: Re: fprintf() + fmemopen() error (?)
Hi Ryan,
Thanks for your reply.
> Unfortunately you've been bitten by GLIBC default stream buffering, which
> is _IOFBF, being 'fully buffered' which is synonymous in the manual pages
> with 'block buffered'.
Doh! Got it now. Easy mistake to make though. Perhaps a word or
two in the 'info fmemopen' page suggesting the use of
setvbuf()/setbuf() would help?
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.