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:


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