^ob_* functions
Florian Weimer
fweimer@redhat.com
Tue Feb 28 13:33:00 GMT 2017
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
More information about the Libc-help
mailing list