lsm_string_list_elem_get - Man Page

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

sl

lsm_string_list. The string list to retrieve from.

index

uint32_t. The index of element string to retrieve. Starting from 0.

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.

Info

July 2024 Libstoragemgmt C API Manual