pub unsafe fn write_cstr( string: String, ptr: *mut c_char, buf_size: size_t) -> Option<size_t>
Called by generated code, do not call directly.
This function is unsafe because it interacts with the C API.
This function assumes buf_size includes space for a single terminating zero byte at the end.
buf_size