riot_sys

Function coap_find_uri_query

Source
pub unsafe extern "C" fn coap_find_uri_query(
    pkt: *mut coap_pkt_t,
    key: *const c_char,
    value: *mut *const c_char,
    len: *mut size_t,
) -> bool
Expand description

@brief Find a URI query option of the packet

This function searches for a query option of the form “?key=value” and would, when present, return the pointer to “value” when searching for “key”.

@param[in] pkt pkt to work on @param[in] key key string to look for @param[out] value found value if present, may be NULL @param[out] len length of value if present, may be NULL if value is NULL

@returns true if the key was found, false if not