EC_INTERACT_GET_HELPS(3)

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

✨ 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 🌈
  • -1 on error 😭

periodt.


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr β€” go read these too, they're all part of the same clique:

iykyk πŸ’œ


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