EC_STRVEC(3)

πŸ’– EC_STRVEC(3) β€” the Libecoli Programmer's Manual, but make it cute πŸ’–

okay bestie, welcome to the libecoli programmer's manual, and today's main character is ec_strvec. no cap.


✨ NAME ✨

ec_strvec β€” allocate a brand new empty string vector. that's it. that's the whole job. she's born empty, she's ready to be filled with strings, and she's slaying from the very first byte. πŸŽ€


🌸 SYNOPSIS 🌸

#include <ecoli/strvec.h>

struct ec_strvec * ec_strvec(
    void
);

so like. you include the header, you call the function, you take no arguments (void, she needs nothing from you, she's independent πŸ’…), and she hands you back a pointer to a struct ec_strvec. iconic behaviour honestly.


πŸ¦‹ RETURN VALUE πŸ¦‹

she returns the new strvec object β€” your fresh little baby πŸ’– β€” OR NULL on error, in which case errno is set, so go check it, bestie. 😭

fr fr, if you get NULL back, do NOT just start dereferencing it. check errno, handle your business, protect your peace. πŸ™ˆ

🌈 SEE ALSO 🌈

the whole friend group, the whole squad, the entire group chat β€” go meet them:


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


and that's the tea β˜• β€” this page is from libecoli, dated 2026-06-11, and it lives at EC_STRVEC(3) in the Libecoli Programmer's Manual. mwah, go allocate something beautiful, bestie πŸ’œβœ¨

πŸ“¦ where this page comes from