EC_STRVEC_GET_ATTRS(3)
β¨ EC_STRVEC_GET_ATTRS β¨
okay bestie, so we're in the Libecoli Programmer's Manual and today's main character is ec_strvec_get_attrs β the little function that goes and grabs the attributes of one specific element inside a string vector. π
πΈ NAME πΈ
ec_strvec_get_attrs β get the attributes of a vector element. no cap, that's literally the whole job. π
π¦ SYNOPSIS π¦
#include <ecoli/strvec.h>
const struct ec_dict * ec_strvec_get_attrs(
const struct ec_strvec *strvec, /* The pointer to the string vector. */
size_t idx /* The index of the string to get. */
);
so you're passing in a strvec pointer (the pointer to the string vector, she's const, she's read-only, respect her π) and an idx (the index of the string to get). that's it. that's the whole vibe check. β¨
π RETURN VALUE π
it hands you back the read-only attributes β that's a dictionary, struct ec_dict β of the string sitting at the index you asked for. π«Ά
and if there's no attribute? you get NULL. not a vibe, but it's the truth. π
π₯ SEE ALSO π₯
the whole squad, fr fr β go read these too:
ec_strvec_set_attrs(3)ec_strvec_del_last(3)ec_strvec_val(3)ec_strvec_cmp(3)ec_strvec_sort(3)ec_strvec_from_array(3)ec_strvec_dup(3)ec_strvec_set(3)ec_strvec_len(3)ec_strvec_dump(3)ec_strvec_sh_lex_str(3)ec_strvec_add(3)ec_strvec_free(3)ec_strvec(3)ec_strvec_ndup(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the tea π β this page came to you from the libecoli fam, dated 2026-06-11, and the manual section is EC_STRVEC_GET_ATTRS(3). periodt. π
β¨
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms