Function rcutils_string_map_getn

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:

NULL for invalid arguments, or

Returns:

NULL if the string map is invalid, or

Returns:

NULL if key not found, or

Returns:

NULL if an unknown error occurs.