riot_sys

Function coap_match_path

Source
pub unsafe extern "C" fn coap_match_path(
    resource: *const coap_resource_t,
    uri: *const u8,
) -> c_int
Expand description

@brief Checks if a CoAP resource path matches a given URI

Builds on strcmp() with rules specific to URI path matching

@note This function is not intended for application use. @internal

@param[in] resource CoAP resource to check @param[in] uri Null-terminated string URI to compare

@return 0 if the resource path matches the URI @return <0 if the resource path sorts before the URI @return >0 if the resource path sorts after the URI