Short question: how can I grab the stdout written to by C(++),
i.e.
C code:
fwrite(...);
std.cstream will be replaced sooner or later.
On Wednesday, 23 July 2014 at 14:53:35 UTC, Chris wrote:
Short question: how can I grab the stdout written to by C(++),
i.e.
C code:
fwrite(...);
std.cstream will be replaced sooner or later.
I don't think I understand the question. stdout is the same file
handle, doesn't matter whether
On Wednesday, 23 July 2014 at 15:12:13 UTC, John Colvin wrote:
On Wednesday, 23 July 2014 at 14:53:35 UTC, Chris wrote:
Short question: how can I grab the stdout written to by C(++),
i.e.
C code:
fwrite(...);
std.cstream will be replaced sooner or later.
I don't think I understand the
The C++ code does this:
size_t fwrite ( const void * ptr, size_t size, size_t count, FILE
* stream );
// stream is stdout
and text appears in the console (a string).
I don't how to grab the text that is written to console. I might
have to redirect it from within the C++ code.
On Wednesday, 23 July 2014 at 15:35:59 UTC, Chris wrote:
The C++ code does this:
size_t fwrite ( const void * ptr, size_t size, size_t count,
FILE * stream );
// stream is stdout
and text appears in the console (a string).
I don't how to grab the text that is written to console. I
might
On Wednesday, 23 July 2014 at 15:35:59 UTC, Chris wrote:
The C++ code does this:
size_t fwrite ( const void * ptr, size_t size, size_t count,
FILE * stream );
// stream is stdout
and text appears in the console (a string).
I don't how to grab the text that is written to console. I
might
On Wednesday, 23 July 2014 at 15:30:53 UTC, Chris wrote:
Redirect it from stdout to somewhere else.
It might be writing to stderr instead of stdout... does anything
change if you reopen stderr too?