Is there something like PHP ob_start for C?

Posted by echedey lorenzo on Stack Overflow See other posts from Stack Overflow or by echedey lorenzo
Published on 2010-03-21T02:40:21Z Indexed on 2010/03/21 2:51 UTC
Read the original article Hit count: 310

Filed under:
|

Hi,

I have a simple gateway listener which generates a log at the screen output via printf. I would like to record it so I can insert it in a mysql table.

printf("\nPacket received!! Decoding...");

I wonder if there is any fast way to do this is C.

In case there is, could I get both outputs at the same time?

Thanks

© Stack Overflow or respective owner

Related posts about c

    Related posts about output