Function rcutils_string_map_getn
Defined in File string_map.h
Function Documentation
-
const char *rcutils_string_map_getn(const rcutils_string_map_t *string_map, const char *key, size_t key_length)
Get value given a key and key length.
Identical to rcutils_string_map_get() but without relying on key to be a null terminated c string.
- Parameters:
string_map – [in] rcutils_string_map_t to be searched
key – [in] map key
key_length – [in] map key length
- Returns:
value for the given key if successful, or
- Returns:
NULLfor invalid arguments, or- Returns:
NULLif the string map is invalid, or- Returns:
NULLif key not found, or- Returns:
NULLif an unknown error occurs.