EC_COMP_ITER_NEXT(3)

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

πŸ’– 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:


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