[LCP] Redirecting File stream to a char*?
Leonard Smith
lrsmith at gmail.com
Fri Jun 27 10:57:43 EST 2008
I need to use a function that is included from a shared library. The
function uses fprint to output errors to stderr or the file pointer
that is passed with the function call. I want to capture the output to
a char* and not be outputed to stdout. I've tried different things,
like using setbuf, but it hasn't been quite right.
Is there a way to do this?
Thanks
Len
More information about the linuxCprogramming
mailing list