[][src]Function uclicious_libucl_sys::ucl_object_insert_key

pub unsafe extern "C" fn ucl_object_insert_key(
    top: *mut ucl_object_t,
    elt: *mut ucl_object_t,
    key: *const c_char,
    keylen: usize,
    copy_key: bool
) -> bool

Insert a object 'elt' to the hash 'top' and associate it with key 'key' @param top destination object (must be of type UCL_OBJECT) @param elt element to insert (must NOT be NULL) @param key key to associate with this object (either const or preallocated) @param keylen length of the key (or 0 for NULL terminated keys) @param copy_key make an internal copy of key @return true if key has been inserted