.init property for char[] type

Daniel Keep daniel.keep.lists at gmail.com
Tue Sep 22 06:44:59 PDT 2009


In general, if you pass a string to a C function you should send it
through toStringz first.  If you don't, you're just begging for segfaults.

Justin Johansson wrote:
>>> There's no real difference between an empty string and a null
>>> reference. Both have 0 length.
>  
> Big difference if you pass char[] variable .ptr to a C function.



More information about the Digitalmars-d mailing list