lsm_string_list_append(3) | Libstoragemgmt C API Manual | lsm_string_list_append(3) |
NAME¶
lsm_string_list_append - Append specified string to lsm_string_list.
SYNOPSIS¶
int lsm_string_list_append (lsm_string_list *sl, const char *add);
ARGUMENTS¶
VERSION¶
1.0
DESCRIPTION¶
Append the specified string to lsm_string_list. The string will be copied and managed by lsm_string_list. The lsm_string_list will be grown to hold this string.
RETURN¶
Error code as enumerated by 'lsm_error_number':
* LSM_ERR_OK
On success.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or not a valid lsm_string_list
pointer.
* LSM_ERR_NO_MEMORY
When no enough memory.
lsm_string_list_append | May 2019 |