EC_STRVEC_ADD(3)
β¨ EC_STRVEC_ADD(3) β¨
okay so bestie, welcome to Libecoli Programmer's Manual, page EC_STRVEC_ADD(3) π this one is short and sweet and honestly a lil iconic.
πΈ NAME πΈ
ec_strvec_add β the girl whose whole job is adding a string into a vector. that's it. that's the gig. π
π¦ SYNOPSIS π¦
#include <ecoli/strvec.h>
int ec_strvec_add(
struct ec_strvec *strvec, /* The pointer to the string vector. */
const char *s /* The string to be added at the end of the vector. */
);
so you're passing in two things, no more no less:
strvecβ the pointer to the string vector π«Ά this is the lil container you're adding to.sβ the string to be added at the end of the vector. emphasis on the end, she goes to the back of the line, no cutting β
π RETURN VALUE π
0on success β ate, no crumbs, you did it π-1on error β and ngl,errnois set, so go check her, she'll tell you what went wrong π
π SEE ALSO π
the whole friend group, 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_get_attrs(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_free(3)ec_strvec(3)ec_strvec_ndup(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie. short, useful, lowkey perfect. go add some strings π
this has been libecoli, dated 2026-06-11, signing off β mwah π«Άβ¨
π¦ 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