strm_dict_value_get()

Updated: April 19, 2023

Get the value of a dictionary entry as a string, based on its index

Synopsis:

#include <sys/strm.h>
const char* strm_dict_value_get(const strm_dict_t *dict,
                                size_t n)

Arguments:

dict
A dictionary handle.
n
The zero-based index of the entry whose value is being retrieved.

Library:

libstrm

Description:

This function finds the value of the entry stored at the zero-based index given in n, in the dictionary specified by dict. It returns the value as a string. This string is owned by the dictionary and remains valid until the dictionary handle is destroyed.

Returns:

The specified value as a string on success, or a null pointer on failure.