yyjson_mut_strncpy

Function yyjson_mut_strncpy 

Source
pub unsafe extern "C" fn yyjson_mut_strncpy(
    doc: *mut yyjson_mut_doc,
    str_: *const c_char,
    len: usize,
) -> *mut yyjson_mut_val
Expand description

Creates and returns a string value, returns NULL on error. The str should be a UTF-8 string, null-terminator is not required. The input string is copied and held by the document.