EC_INTERA...MPLETIONS(3)

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

✨ EC_INTERA...MPLETIONS(3) ✨

okay bestie, so this is a page from the Libecoli Programmer's Manual β€” yes the manual name got shortened with an ellipsis in the header, that's just how they do, and we're keeping it. sit down, hydrate, we're learning about freeing memory today πŸ’–


🌸 NAME 🌸

ec_interact_free_completions β€” free the array of completion matches.

like, it does exactly what it says on the tin, no cap. the matches go poof. 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <ecoli/interact.h>

void ec_interact_free_completions(
    char   **matches,  /* The array of matches. */
    size_t   n         /* The size of the array. */
);

so you need <ecoli/interact.h> in your life first, and then it's giving void β€” meaning it hands you back absolutely nothing, because it's too busy cleaning up after you. icon behaviour honestly πŸ‘‘

two things it wants:

  • matches β€” the array of matches. it's a char **, so it's a lil array of strings, the whole squad πŸ’…
  • n β€” the size of the array. a size_t, so it knows exactly how many besties to say bye to.
lowkey important: this is the cleanup crew. if you called something like ec_interact_get_completions(3) and got an array back, this is how you let it go. don't ghost your memory, bestie. 🧚

🌈 SEE ALSO 🌈

the whole friend group, all of them, fr fr:


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


and that's the whole vibe check, bestie βœ¨πŸ’– this was libecoli, dated 2026-06-11, page EC_INTERA...MPLETIONS(3) β€” go free those completions and slay the memory leaks, periodt πŸ’…πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from