J
JohnF
I'd like to capture the stdout output from system("command")
in a buffer. Although system("command >tmpnam") and then
open,read,remove tmpnam works, it's a bit more messy than
I'd like. Is there any way to redirect system()'s stdout
directly to an internal memory buffer before issuing the call?
Thanks,
in a buffer. Although system("command >tmpnam") and then
open,read,remove tmpnam works, it's a bit more messy than
I'd like. Is there any way to redirect system()'s stdout
directly to an internal memory buffer before issuing the call?
Thanks,