EC_COMP(3)
π 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:
ec_comp_add_item(3)ec_comp_count(3)ec_comp_item_set_str(3)ec_complete(3)ec_comp_get_attrs(3)ec_comp_group_get_attrs(3)ec_comp_iter_next(3)ec_comp_item_get_node(3)ec_comp_iter_first(3)ec_comp_item_get_current(3)ec_comp_group_get_node(3)ec_complete_strvec_expand(3)ec_comp_free(3)ec_comp_get_cur_pstate(3)ec_complete_unknown(3)ec_complete_strvec(3)ec_comp_item_get_grp(3)ec_comp_item_get_type(3)ec_comp_item_get_str(3)ec_comp_item_set_display(3)ec_complete_child(3)ec_comp_item_get_display(3)ec_comp_item_get_completion(3)ec_comp_group_get_pstate(3)ec_comp_dump(3)ec_comp_merge(3)ec_comp_item_set_completion(3)ec_comp_get_cur_group(3)
π COPYRIGHT π
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
- 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