1lsm_string_list_delete(3) Libstoragemgmt C API Manuallsm_string_list_delete(3)
2
3
4
6 lsm_string_list_delete - Deletes specified element from
7 lsm_string_list.
8
10 int lsm_string_list_delete (lsm_string_list *sl, uint32_t index);
11
13 sl lsm_string_list. Pointer of lsm_string_list to update.
14
15 index uint32_t. The element index. Start from 0.
16
18 1.0
19
21 Deletes the specified element from lsm_string_list. The string of that
22 element will be freed. The pointer retrieved by
23 lsm_string_list_elem_get will be invalid. The element after this one
24 will moved down, thus if you wanted to iterate over the list deleting
25 each element one by one you need to do in reverse order.
26
28 Error code as enumerated by 'lsm_error_number':
29 * LSM_ERR_OK
30 On success.
31 * LSM_ERR_INVALID_ARGUMENT
32 When any argument is NULL or not a valid lsm_string_list
33 pointer.
34
35
36
37May 2018 lsm_string_list_delete lsm_string_list_delete(3)