EC_STRVEC_LEN(3)
π EC_STRVEC_LEN β bestie, let's count some strings π
okay so this is a page from the Libecoli Programmer's Manual, and the star of the show is ec_strvec_len. if you're holding a string vector and you're like "how many lil strings are in this thing??" β this is literally the function for you. no cap. π
β¨ NAME β¨
ec_strvec_len β get the length of a string vector. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
#include <ecoli/strvec.h>
size_t ec_strvec_len(
const struct ec_strvec *strvec /* The pointer to the string vector. */
);
so you pull in the header, and you hand her one thing: strvec, which is The pointer to the string vector. that's the pointer, bestie, the pointer to the string vector. she takes a const struct ec_strvec * because she's not about to mess with your data β she's just here to count, main character energy only π
π¦ RETURN VALUE π¦
she hands you back the length of the vector. and the return type is size_t, so it's a nice big unsigned number, no negativity allowed in this house π
π SEE ALSO π
the whole squad, fr fr β go read these next:
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_get_attrs(3)ec_strvec_dup(3)ec_strvec_set(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.
lowkey obsessed with how simple this one is. count your strings, live your truth, and always ec_strvec_free(3) when you're done, bestie π«Ά
this has been the EC_STRVEC_LEN(3) page from libecoli, dated 2026-06-11. mwah, go slay your string vectors β¨ππ§
π¦ 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