EC_COMP_ITER_NEXT(3)
π EC_COMP_ITER_NEXT(3) π
okay so bestie, welcome to the Libecoli Programmer's Manual β this lil page is all about ec_comp_iter_next(3) and it's genuinely so useful, no cap π¦
β¨ NAME β¨
ec_comp_iter_next β grab the next completion item that matches the type you asked for. like, the next one. the one after this one. you get it π
πΈ SYNOPSIS πΈ
#include <ecoli/complete.h>
struct ec_comp_item * ec_comp_iter_next(
struct ec_comp_item *item, /* The current completion item. */
/*
* A logical OR of flags among EC_COMP_UNKNOWN, EC_COMP_PARTIAL
* and EC_COMP_FULL, to select the type to iterate.
*/
enum ec_comp_type type
);
π DESCRIPTION π
so you hand it the current completion item and the type you wanna iterate over, and it hands you back the next one. that's the whole vibe β¨
Also see EC_COMP_FOREACH() β fr fr, go look at that one too, it's giving convenience π«Ά
π§ STRUCTURES π§
enum ec_comp_type {
EC_COMP_UNKNOWN;
EC_COMP_FULL;
EC_COMP_PARTIAL;
EC_COMP_ALL;
};
look at those little enum besties. EC_COMP_UNKNOWN, EC_COMP_FULL, EC_COMP_PARTIAL, EC_COMP_ALL β iconic lineup honestly π
β RETURN VALUE β
the next completion item, or NULL if there is no more. that's it. when it's done, it's done, periodt π
π SEE ALSO π
the whole friend group, lowkey a family reunion:
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_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_merge(3)ec_comp_item_set_completion(3)ec_comp_get_cur_group(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
that's the whole page bestie, go iterate on something gorgeous π
and for the lil sign-off moment: this came from libecoli, dated 2026-06-11, and it's page EC_COMP_ITER_NEXT(3) of the Libecoli Programmer's Manual β mwah, slay, bye πβ¨
π¦ 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