EC_INTERA...MPLETIONS(3)
β¨ 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 achar **, so it's a lil array of strings, the whole squad πnβ the size of the array. asize_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:
ec_interact_get_completions(3)ec_interact_print_helps(3)ec_interact_print_error_helps(3)ec_interact_print_cols(3)ec_interact_set_help(3)ec_interact_append_chars(3)ec_interact_set_desc(3)ec_interact_get_callback(3)ec_interact_set_callback(3)ec_interact_get_error_helps(3)ec_interact_get_helps(3)ec_interact_free_helps(3)
π COPYRIGHT π
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
- 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