[][src]Function libcoap_sys::coap_find_attr

pub unsafe extern "C" fn coap_find_attr(
    resource: *mut coap_resource_t,
    name: *mut coap_str_const_t
) -> *mut coap_attr_t

Returns @p resource's coap_attr_t object with given @p name if found, @c NULL otherwise.

@param resource The resource to search for attribute @p name. @param name Name of the requested attribute as a string. @return The first attribute with specified @p name or @c NULL if none was found.