EC_COMP_FREE(3)
π EC_COMP_FREE β bestie, let it go π
okay so real talk: this is page 3 of the Libecoli Programmer's Manual, and today we're learning how to release a completion object. Not everything needs to be held onto forever, bestie. Sometimes you gotta free your ec_comp and all its little items too. It's giving β¨closureβ¨.
π NAME π
ec_comp_free β free a completion object and all its items. yes, all of them. every single one. no stragglers, no leftovers, no "but what aboutβ" β all of it. π
β¨ SYNOPSIS β¨
#include <ecoli/complete.h>
void ec_comp_free(
struct ec_comp *comp /* The pointer to the completion structure to free. */
);
so you just hand over the pointer to your completion struct and it's like "bet, say less" and cleans the whole thing up. no return value, because there's nothing to report back β it just does it. iconic behaviour honestly. π«Ά
Quick vibe check on that argument:
compβ the pointer to the completion structure you want to free. that's it. that's the whole job. literally just point at the thing and let it go. π¦
heads up bestie: this frees the completion object and all its items β so don't go holding onto any pointers to items afterward and acting surprised when they're gone. that's on you, not on ec_comp_free. π
πΈ SEE ALSO πΈ
the whole friend group, fr fr β go say hi to these when you're done here:
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_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(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 page, bestie!! π this gem came from thelibecolicrew, dated2026-06-11β so if you ever need to cite it, that's your receipt. now go free your completions and live your main character life. 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