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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Feb 28, 2017 at 04:27:59PM +0330, Mohsen Pahlevanzadeh wrote:
> 
> 
> On 02/28/2017 04:22 PM, tomas@tuxteam.de wrote:

  [HTTP]

> >What are you trying to do?
> >
> >Regards

[...]

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

You mean ob_start? Or you mean what you want to do?

The function ob_start *is* doing HTTP:

  "This function will turn output buffering on. While output
   buffering is active no output is sent from the script (other
   than headers), instead the output is stored in an internal
   buffer."

Notice this "other than headers" up there They are talking about
HTTP headers.

Other than that, yes, the higher level stdio functions (puts,
printf and family) all output to a buffered stream, which gets
flushed automatically as soon as the buffer is full.

If you want explicit control over that, again I don't thing
libc is the place to look.

Again: what is it what you are trying to do?

(Sorry for being stubborn, but I guess I need more context to
have a chance to give you a meaningful answer).

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAli1dmUACgkQBcgs9XrR2kYrYwCfU/b9UdYfkPUT9YXf8JNVVSEL
WVkAn0dHXQCpBlOQDzM84kto+3kmoyCh
=SCa3
-----END PGP SIGNATURE-----


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