EC_INTERACT_SET_HELP(3)
π EC_INTERACT_SET_HELP π
okay bestie, so this one lives in the Libecoli Programmer's Manual, section 3 (that's the library-calls girlies π«Ά). it's literally called ec_interact_set_help, and honestly? it's giving "one job, does it perfectly." β¨
β¨ NAME β¨
ec_interact_set_help β set help on a grammar node. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <ecoli/interact.h>
int ec_interact_set_help(
struct ec_node *node, /* The ec_node on which to add the help attribute. */
const char *help /* The help string. */
);
so you pull in the header, you call the function with two things, and you're off. no cap. π¦
π DESCRIPTION π
okay so here's the tea π: this function sets the node attribute EC_INTERACT_HELP_ATTR on the node you hand it, and that attribute contains the string you passed in as help.
and why do we care? because the ec_interact functions use it to show contextual helps β like, when you're completing stuff, or when a parsing error pops off. so your users get a lil friendly nudge instead of just vibing in the dark. iconic behavior, honestly. π
β RETURN VALUE β
0β slay, it worked, success bestie π-1β oop, error π
π₯ SEE ALSO π₯
the whole friend group, 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_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.
and that's the whole page, bestie. go forth and set some helps. πβ¨
mwah π β this was libecoli, dated 2026-06-11, and it ate, no crumbs left. 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