1lsm_string_list_elem_get(3)Libstoragemgmt C API Manuallsm_string_list_elem_get(3)
2
3
4
6 lsm_string_list_elem_get - Retrieve specified index of string from
7 lsm_string_list.
8
10 const char * lsm_string_list_elem_get (lsm_string_list *sl, uint32_t
11 index);
12
14 sl lsm_string_list. The string list to retrieve from.
15
16 index uint32_t. The index of element string to retrieve. Starting
17 from 0.
18
20 1.0
21
23 Retrieves specified index of string from lsm_string_list.
24
26 Address returned is valid until lsm_string_list gets freed, copy return
27 value if you need longer scope. Do not free returned string.
28
30 string. NULL if argument 'sl' is NULL or not a valid lsm_string_list
31 pointer or out of index.
32
33
34
35November 2021 lsm_string_list_elem_getlsm_string_list_elem_get(3)