how to pass stderr to core.stdc.stdio.fileno
berni via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Feb 17 10:43:29 PST 2017
On Friday, 17 February 2017 at 16:08:11 UTC, Adam D. Ruppe wrote:
> Try
>
> fileno(core.stdc.stdio.stderr);
>
> to force it to use the C stderr object instead of the D one.
>
> Alternatively, fileno(stderr.getFP()) should do it too.
> http://dpldocs.info/experimental-docs/std.stdio.File.getFP.html
Many thanks! That worked. And also thanks for the link. I didn't
know if this docs yet. :-)
More information about the Digitalmars-d-learn
mailing list