Function dds_lookup_statistic

Function Documentation

const struct dds_stat_keyvalue * dds_lookup_statistic (const struct dds_statistics *stat, const char *name) ddsrt_nonnull((2))

Lookup a specific value by name.

This looks up the specified name in the list of keys in stat and returns the address of the key-value pair if present, a null pointer if not. If stat is a null pointer, it returns a null pointer.

Parameters
  • stat[in] statistics object to lookup a name in (or NULL)

  • name[in] name to look for

Returns

The address of the key-value pair inside stat, or NULL if stat is NULL or name does not match a key in `stat.