Function arma_rs::write_cstr

source ·
pub unsafe fn write_cstr(
    string: String,
    ptr: *mut c_char,
    buf_size: size_t
) -> Option<size_t>
Expand description

Called by generated code, do not call directly.

Safety

This function is unsafe because it interacts with the C API.

Note

This function assumes buf_size includes space for a single terminating zero byte at the end.