lsm_string_list_elem_get(3) | Libstoragemgmt C API Manual | lsm_string_list_elem_get(3) |
NAME¶
lsm_string_list_elem_get - Retrieve specified index of string from lsm_string_list.
SYNOPSIS¶
const char * lsm_string_list_elem_get (lsm_string_list *sl, uint32_t index);
ARGUMENTS¶
VERSION¶
1.0
DESCRIPTION¶
Retrieves specified index of string from lsm_string_list.
NOTE¶
Address returned is valid until lsm_string_list gets freed, copy return value if you need longer scope. Do not free returned string.
RETURN¶
string. NULL if argument 'sl' is NULL or not a valid lsm_string_list pointer or out of index.
lsm_string_list_elem_get | April 2023 |