toStringz
fn
const(char) * toStringz(string s) @trustedConverts a D string to a null-terminated C string.
This is a convenience function for passing D strings to shim functions. The returned pointer is only valid for the duration of the call.
Parameters
s | D string to convert |
Returns
Null-terminated C string pointer