This is the mail archive of the libc-help@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]

Re: ^ob_* functions


On 02/28/2017 01:57 PM, Mohsen Pahlevanzadeh wrote:

It's not http buffering, It's Turn on output buffering,
I need same in C.

Then you need to look at fopencookie or open_memstream, and reassign stdout (which glibc aims to support as an extension).

If you need to buffer output which does not go through stdout, you need to use a coprocess or a thread with a pipe for STDOUT_FILENO to capture the output. This would cover capturing stdout as well, but is more complicated to implement.

Florian


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