how to pass stderr to core.stdc.stdio.fileno

berni via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 17 08:02:39 PST 2017


The following code doesn't work:

> int no = fileno(stderr);

The error message is:

test.d(7): Error: function core.stdc.stdio.fileno 
(shared(_IO_FILE)*) is not callable using argument types (File)

How can I cast stderr to something, that fileno() accepts?


More information about the Digitalmars-d-learn mailing list