1lsm_string_list_elem_set(3)Libstoragemgmt C API Manuallsm_string_list_elem_set(3)
2
3
4

NAME

6       lsm_string_list_elem_set    -    Sets    the   specified   element   of
7       lsm_string_list.
8

SYNOPSIS

10       int  lsm_string_list_elem_set  (lsm_string_list  *sl,  uint32_t  index,
11       const char *value);
12

ARGUMENTS

14       sl          Pointer of lsm_string_list to update.
15
16       index       The element index, starting from 0.
17
18       value       The string to store in lsm_string_list.
19

VERSION

21       1.0
22

DESCRIPTION

24       Sets  the  specified  element  of  lsm_string_list.  The string will be
25       copied and managed by lsm_string_list.  The memory of old  string  will
26       be  freed.  If specified index is larger than lsm_string_list size, the
27       lsm_string_list will be automatically grow and padding with NULL.
28

RETURN

30       Error code as enumerated by 'lsm_error_number':
31           * LSM_ERR_OK
32               On success.
33           * LSM_ERR_INVALID_ARGUMENT
34               When any argument is NULL or not a valid lsm_string_list
35               pointer.
36           * LSM_ERR_NO_MEMORY
37               When no enough memory.
38
39
40
41April 2022                 lsm_string_list_elem_setlsm_string_list_elem_set(3)
Impressum