Scroll to navigation

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

lsm_string_list. The string list to retrieve from.
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.

lsm_string_list_elem_get January 2023