toStringz or not toStringz

Walter Bright newshound2 at digitalmars.com
Fri Jul 8 02:49:08 PDT 2011


On 7/8/2011 2:26 AM, Regan Heath wrote:
> Why can't we have the
> compiler call it automatically whenever we pass a string, or char[] to an extern
> "C" function, where the parameter is defined as char*?

Because char* in C does not necessarily mean "zero terminated string".


More information about the Digitalmars-d mailing list