lsm_string_list_delete(3)
π lsm_string_list_delete β a libstoragemgmt C API moment π
okay bestie, welcome to the Libstoragemgmt C API Manual page for lsm_string_list_delete(3) β yes it's a mouthful, no we're not shortening it, it's iconic like that β¨
πΈ NAME πΈ
lsm_string_list_delete β deletes a specified element from an lsm_string_list. that's it. that's the whole job. she's a specialist π
β¨ SYNOPSIS β¨
int lsm_string_list_delete (lsm_string_list *sl, uint32_t index);
π ARGUMENTS π
slβ anlsm_string_list. it's a pointer to thelsm_string_listyou wanna update, so likeβ¦ hand her the list, she's gonna touch it π«Άindexβ auint32_t. the element index. and listen, it starts from 0. zero. not one. zero. counting from zero is the vibe, iykyk π
π¦ VERSION π¦
1.0 β vintage but make it timeless π
π DESCRIPTION π
okay so here's the tea: lsm_string_list_delete deletes the specified element from your lsm_string_list. the string of that element gets freed β gone, ghosted, no coming back π
and because she's thorough, the pointer you got from lsm_string_list_elem_get will be invalid after this. like, do NOT touch it. that pointer is ex-communicated fr fr π
also, the element right after the deleted one moves down to fill the gap β classic little shift-down moment, very main character energy π
β οΈ so if you were planning to iterate over the list deleting each element one by one, you gotta do it in reverse order. yes, backwards. no cap. if you go forward you will skip elements and you will be sad about it π
π RETURN π
returns an error code, as enumerated by 'lsm_error_number':
LSM_ERR_OKβ on success. slay! we ate! πLSM_ERR_INVALID_ARGUMENTβ when any argument isNULL, or it's just not a validlsm_string_listpointer. bestie, that's not a list, that's a problem π
and that's the whole page, no notes π
kisses and clean memory management, this was the lsm_string_list_delete(3) page, dropping from the Libstoragemgmt C API Manual in February 2026 β go forth and delete responsibly, bestie π«Άπβ¨
π¦ where this page comes from
- fedora 43: libstoragemgmt-devel 1.10.3-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstoragemgmt-devel 1.10.3-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms