EC_INTERACT_GET_HELPS(3)
β¨ EC_INTERACT_GET_HELPS(3) β¨
okay bestie, welcome to the Libecoli Programmer's Manual π this one is ec_interact_get_helps β it's a little function from the 3 section and it's literally here to hand you the contextual helps for whatever line you're chillin' on. yes queen, help for your help π
πΈ NAME πΈ
ec_interact_get_helps β Get contextual helps from the current line.
like. the vibes are: you give it a line, it gives you the helps. no cap β¨
π¦ SYNOPSIS π¦
#include <ecoli/interact.h>
ssize_t ec_interact_get_helps(
const struct ec_node *node, /* The pointer to the sh_lex grammar node. */
const char *line, /* The line from which to get help. */
/*
* The pointer where the helps array will be returned.
*/
struct ec_interact_help **helps_out
);
so you pull in the header, and you pass three things: the node (that's the pointer to the sh_lex grammar node, the grammar girlie herself π
), the line (the line you want help from), and helps_out (the pointer where the helps array gets returned, i.e. where the good stuff lands π«Ά).
π STRUCTURES π
A structure describing a contextual help. it's giving very minimal, and honestly? iconic.
struct ec_interact_help {
};
that's it. that's the struct. it describes a contextual help and it contains exactly nothing, and we respect it for that πβ¨
π RETURN VALUE π
- the size of the array on success β and by success we mean
>= 0, so yes, zero counts, she's valid π -1on error π
periodt.
π₯ SEE ALSO π₯
the whole friend group, fr fr β go read these too, they're all part of the same clique:
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_free_completions(3)ec_interact_free_helps(3)
iykyk π
π§ COPYRIGHT π§
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page bestie, you ate π this was libecoli, dated 2026-06-11, and the manual page is EC_INTERACT_GET_HELPS(3) β mwah, go forth and get those contextual helps πβ¨π
π¦ 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