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.

Reply via email to