riot_sys

Function nanocbor_put_tstr

Source
pub unsafe extern "C" fn nanocbor_put_tstr(
    enc: *mut nanocbor_encoder_t,
    str_: *const c_char,
) -> c_int
Expand description

@brief Copy a text string with indicator into the encoder buffer

@param[in] enc Encoder context @param[in] str null terminated text string to encode

@return NANOCBOR_OK if the string fits @return Negative on error