About const and C functions

Trass3r un at known.com
Wed Mar 2 00:56:33 PST 2011


Am 01.03.2011, 23:33 Uhr, schrieb bearophile <bearophileHUGS at lycos.com>:

> Do you know why DMD doesn't give a compilation error here?
>
>
> import core.stdc.stdio: sscanf;
> immutable int value = 5;
> void main() {
>     sscanf("10".ptr, "%d".ptr, &value);
> }
>

What's the D signature of sscanf?


More information about the Digitalmars-d-learn mailing list