About const and C functions

Simon s.d.hammett at gmail.com
Wed Mar 2 03:28:33 PST 2011


On 02/03/2011 08:56, Trass3r wrote:
> 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?

void* after the format arg...

-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk


More information about the Digitalmars-d-learn mailing list