yyjson_mut_arr_add_str

Function yyjson_mut_arr_add_str 

Source
pub unsafe extern "C" fn yyjson_mut_arr_add_str(
    doc: *mut yyjson_mut_doc,
    arr: *mut yyjson_mut_val,
    str_: *const c_char,
) -> bool
Expand description

Adds a string value at the end of the array (no copy). @param doc The doc is only used for memory allocation. @param arr The array to which the value is to be inserted. Returns false if it is NULL or not an array. @param str A null-terminated UTF-8 string. @return Whether successful. @warning The input string is not copied, you should keep this string unmodified for the lifetime of this JSON document.