How to use sprintf

Steven Schveighoffer schveiguy at yahoo.com
Mon Apr 25 10:32:46 PDT 2011


On Mon, 25 Apr 2011 12:55:38 -0400, Andrej Mitrovic  
<andrej.mitrovich at gmail.com> wrote:

> Isn't it dangerous to pass a D string and let the C code overwrite the
> string, regardless of char* vs .ptr field?

Yes.  Using sprintf is dangerous regardless of what language you are  
using.  It is advised to use D equivalents.

-Steve


More information about the Digitalmars-d mailing list