toStringz

fnconst(char) * toStringz(string s) @trusted

Converts 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

sD string to convert

Returns

Null-terminated C string pointer