Updated: October 28, 2024 |
Get the index of a dictionary entry based on its key
#include <sys/strm.h>
ssize_t strm_dict_find_index(const strm_dict_t *dict, const char *key)
This function returns the index of the entry specified by key and found in the dict dictionary. The index is zero-based.
If the entry is found, its zero-based index is returned. If it's not found, -1 is returned.