EC_COMP_MERGE(3)
π EC_COMP_MERGE(3) π
okay so bestie, welcome to Libecoli Programmer's Manual, section 3, and today's main character is ec_comp_merge π«Ά
β¨ NAME β¨
ec_comp_merge β merge the items chillin' inside from into to. that's it. that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <ecoli/complete.h>
int ec_comp_merge(
struct ec_comp *to, /* The destination completion list. */
struct ec_comp *from /* The source completion list. */
);
π¦ DESCRIPTION π¦
so like, picture two completion lists. one is the destination (to), one is the source (from). this function scoops everything out of from and pours it into to, no cap π
and then β and this is the part you gotta remember β the from comp struct gets freed. gone. released. it does NOT survive the merge. so do not go touching it afterwards, bestie, that's a one-way ticket to undefined behaviour town ππ
β RETURN VALUE β
0β slay, it worked, success π-1β oof, error, anderrnois set for you so you can go find out what went wrong π
π SEE ALSO π
the whole friend group, fr fr:
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(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_item_set_completion(3)ec_comp_get_cur_group(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
k bye bestie, go merge some lists responsibly πβ¨ this has been libecoli, dated 2026-06-11, page EC_COMP_MERGE(3) β 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