1lsm_string_list_append(3) Libstoragemgmt C API Manuallsm_string_list_append(3)
2
3
4
6 lsm_string_list_append - Append specified string to lsm_string_list.
7
9 int lsm_string_list_append (lsm_string_list *sl, const char *add);
10
12 sl Pointer of lsm_string_list to update.
13
14 add The string to store in lsm_string_list.
15
17 1.0
18
20 Append the specified string to lsm_string_list. The string will be
21 copied and managed by lsm_string_list. The lsm_string_list will be
22 grown to hold this string.
23
25 Error code as enumerated by 'lsm_error_number':
26 * LSM_ERR_OK
27 On success.
28 * LSM_ERR_INVALID_ARGUMENT
29 When any argument is NULL or not a valid lsm_string_list
30 pointer.
31 * LSM_ERR_NO_MEMORY
32 When no enough memory.
33
34
35
36November 2022 lsm_string_list_append lsm_string_list_append(3)