EC_COMP(3)

πŸ“¦
version 0.11.7 Β· 5 versions
, in fedora 44

πŸ’– EC_COMP β€” ok so bestie, let's build you an empty completion list πŸ’–

Hiii welcome to the Libecoli Programmer's Manual section EC_COMP(3) ✨ This is the one where we make a completion object from absolutely nothing. Empty. Blank. A little baby list of completion items that's just waiting to be filled up πŸŽ€


🌸 NAME 🌸

ec_comp β€” create an empty completion object (which is, like, a list of completion items, iykyk) πŸ’…


✨ SYNOPSIS ✨

#include <ecoli/complete.h>

struct ec_comp * ec_comp(
    void
);

That's it. No arguments. She takes void, she gives you vibes πŸ¦‹


🫢 RETURN VALUE 🫢

On success you get back a pointer to the completion structure β€” slay, congratulations, it's yours πŸ’–

On error you get NULL, and ngl errno is set for you so you can go find out what went wrong 😭

Heads up bestie: NULL is a real possibility, so check it. Don't just raw-dog the pointer and hope. That's not main character energy, that's segfault energy πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

The whole squad, fr fr. Every single one of these is your bestie too:


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


and that's the whole page, bestie!! 🌈 This lil cutie lives in the Libecoli Programmer's Manual, dated 2026-06-11, and yeah the source string literally just says libecoli β€” iconic, understated, we love her πŸ’œ Now go make something empty and then fill it with 40 completion items like the absolute legend you are πŸ¦‹βœ¨πŸ’…

πŸ“¦ where this page comes from