[][src]Function libcoap_sys::coap_make_str_const

pub unsafe extern "C" fn coap_make_str_const(
    string: *const c_char
) -> *mut coap_str_const_t

Take the specified string and create a coap_str_const_t *

Note: the array is 2 deep as there are up to two callings of coap_make_str_const in a function call. e.g. coap_add_attr(). Caution: If there are local variable assignments, these will cycle around the varCOAP_MAX_STR_CONST_FUNC set. No current examples do this.

@param string The const string to convert to a coap_str_const_t *

@return A pointer to one of two static variables containing the coap_str_const_t * result