How to call a C function from D that takes a FILE * as an argument?
Adam D. Ruppe
destructionator at gmail.com
Wed Jul 4 03:42:27 UTC 2018
On Wednesday, 4 July 2018 at 02:54:47 UTC, Joe wrote:
> Now I fixed this by changing the import to core.stdc.stdio. I
> guess the problem is if you import std.stdio (which brings in
> the other one), there are two slightly incompatible stdout's
> and the D takes precedence.
If you import both modules (or even I think if just the D
std.stdio, since it publicly imports the other), you can specify
the C one by using its full name:
core.stdc.stdio.stdout
where you use it. of course you can also alias it to something
shorter.
More information about the Digitalmars-d-learn
mailing list