strm_dict_index_delete()

Updated: May 06, 2022

Delete a dictionary entry by index

Synopsis:

#include <sys/strm.h>
strm_dict_t* strm_dict_index_delete(strm_dict_t *dict,
                                    size_t index)

Arguments:

dict
A dictionary handle.
index
The index of the entry to delete. This index is zero-based.

Library:

libstrm

Description:

This function creates a new dictionary that is an exact replica of the one specified by dict, except that the entry specified by index is deleted.

When the function succeeds, the original dictionary handle is destroyed and a handle to the new dictionary is returned.

Returns:

A handle to the new dictionary on success, or a null pointer on failure (if you provided an out-of-range index, errno is set to ESRCH).