[][src]Function libcoap_sys::coap_new_string

pub unsafe extern "C" fn coap_new_string(size: usize) -> *mut coap_string_t

Returns a new string object with at least size+1 bytes storage allocated. The string must be released using coap_delete_string().

@param size The size to allocate for the binary string data.

@return A pointer to the new object or @c NULL on error.