Input from a newbie

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Apr 9 08:39:50 PDT 2012


On 4/9/12, Jonas <jonas at lophus.org> wrote:
> On Saturday, 7 April 2012 at 22:42:19 UTC, Stefan wrote:
>> printf is a C function which expects 0-terminated strings. D's
>> strings are variable-length arrays and not zero-terminated.
>>
>> Don't use printf. Try using writef instead. Same arguments.
>
> http://d.puremagic.com/issues/show_bug.cgi?id=7872

I don't think the compiler can warn about this. Isn't printf one of
those unsafe C variadic functions? Someone correct me if I'm wrong.


More information about the Digitalmars-d-learn mailing list