The more interesting question

Christophe Travert travert at
Fri May 18 08:05:21 PDT 2012

"Steven Schveighoffer" , dans le message (digitalmars.D:167556), a
> toStringz can allocate a new block in order to ensure 0 gets added.  This  
> is ludicrous!
> You are trying to tell me that any time I want to call a C function with a  
> string literal, I have to first heap-allocate it, even though I *know*  
> it's safe.

How about "mystring\0".ptr ?

More information about the Digitalmars-d mailing list