Skip to main content

lyd_any_copy_value

Function lyd_any_copy_value 

Source
pub unsafe extern "C" fn lyd_any_copy_value(
    trg: *mut lyd_node,
    child: *const lyd_node,
    value: *const c_char,
    hints: u32,
) -> Type
Expand description

@brief Copy anydata value from one node to another. Target value is freed first.

Only one of @p child and @p value can be set. If neither is set, @p trg value is only freed.

@param[in,out] trg Target node. @param[in] child Data tree source value. @param[in] value String source value. @param[in] hints String value hints, see [value hints](@ref lydvalhints). @return LY_ERR value.