D2 toStringz Return Type
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Nov 8 06:41:27 PST 2008
ore-sama wrote:
> Uh... I used toStringz, but didn't know that it's return type is
> const and that people have troubles with this :) AFAIK the only
> function, writing to its sz argument is strtok, C libraries usually
> follow popular convention that input strings are "in".
strcpy sprintf strcat gets, off the top of my head. They are so bad and
dangerous, for some safer versions were introduced and are universally
recommended: strncpy snprintf strncat.
Andrei
More information about the Digitalmars-d
mailing list