EC_INTERACT_GET_COMPLETIONS(3)
β¨ EC_INTERACT_GET_COMPLETIONS(3) β¨
okay bestie, welcome to the Libecoli Programmer's Manual π this one's a lil cutie from the ecoli/interact.h corner of the world, and she's here to hand you a whole array of completion matches. no cap.
πΈ NAME πΈ
ec_interact_get_completions β get completion matches as an array of strings. that's it, that's the job, and she does it flawlessly π
π¦ SYNOPSIS π¦
#include <ecoli/interact.h>
ssize_t ec_interact_get_completions(
/*
* The completions, as returned by ec_complete().
*/
const struct ec_comp *cmpl,
/*
* The pointer where the matches array will be returned.
*/
char * **matches_out,
enum ec_comp_type type_mask
);
ok so like, three args, three vibes:
const struct ec_comp *cmplβ the completions, literally exactly as returned byec_complete(). don't get creative with it bestie, just pass what you got.char **matches_outβ the pointer where the matches array is gonna get returned. she's writing into this, so she needs somewhere to put it π«Άenum ec_comp_type type_maskβ the mask that says which types you want in on the fun.
β RETURN VALUE β
- the size of the array on success (that's
>= 0) β slay, you got matches -1on error β not slay, something went wrong π
π SEE ALSO π
the whole friend group, go say hi:
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_free_completions(3)ec_interact_get_helps(3)ec_interact_free_helps(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry. protect it with your life, periodt π
and that's the whole page bestie!! this one shipped as part of libecoli, dated 2026-06-11, and she ate and left no crumbs π¦β¨ mwah, go compile something gorgeous π
π¦ 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