core.stdc.stdio.stderr != std.stdio.stderr ?

David Nadlinger see at klickverbot.at
Fri Aug 19 07:48:49 PDT 2011


On 8/19/11 4:12 PM, bearophile wrote:
> static import core.stdc.stdio;
> static import std.stdio;
> void main() {
>      std.stdio.fprintf(core.stdc.stdio.stderr, "Error\n"); // OK
>      std.stdio.fprintf(std.stdio.stderr, "Error\n"); // line 5, error
> }

std.stdio.stderr is a wrapper around core.stdc.stdio.stderr (a D File), 
you can use std.stdio.stderr.getFP() to get the C FILE pointer from it.

David


More information about the Digitalmars-d-learn mailing list