null if buffer is too small.copyStringz
private fn
const(char) * copyStringz(scope const(char)[] source, scope char[] buffer) @trusted nothrowCopy a D string slice to a null-terminated C string buffer.
Parameters
source | Source string slice. |
buffer | Destination buffer. |
Returns
Pointer to the null-terminated string, or