EC_COMPLETE_UNKNOWN(3)

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

πŸ’– EC_COMPLETE_UNKNOWN πŸ’–

okay bestie, so this one lives in the Libecoli Programmer's Manual, section 3, and it's literally called ec_complete_unknown β€” the default node completion callback. yes, THE default one. the fallback queen. the understudy who's actually always on stage. πŸ‘‘


✨ NAME ✨

ec_complete_unknown β€” Default node completion callback.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ecoli/complete.h>

int ec_complete_unknown(
    const struct ec_node     *node,    /* The completion node. */
    struct ec_comp           *comp,    /* The completion list to update. */
    const struct ec_strvec   *strvec   /* The input string vector. */
);

🌸 DESCRIPTION 🌸

so here's the tea. this function is the default completion method for nodes that do not define one. like, if a node showed up to the completion party without its own outfit, this is the outfit it gets handed at the door. no cap. πŸ’…

what it actually does: this helper adds a completion item of type EC_COMP_UNKNOWN if the input string vector contains one element. and why, you ask? to signal that everything before the last element of the string vector has been parsed successfully, but the node genuinely doesn't know how to complete the last element. it's giving "i did my part, the rest is a mystery bestie" energy. 😭✨


πŸŽ€ RETURN VALUE πŸŽ€

  • 0 on success 🫢
  • -1 on error, and ngl, errno gets set when that happens πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” go say hi to all of them:


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


and that's the whole page, babe. this gem is from libecoli, dated 2026-06-11, and it's EC_COMPLETE_UNKNOWN(3) β€” slay, ate, no crumbs left, periodt. πŸ’–βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from