EC_EDITLINE_PARSE(3)
π EC_EDITLINE_PARSE(3) π
part of the Libecoli Programmer's Manual era, bestie π
β¨ NAME β¨
ec_editline_parse β grab a line from your user interactively (completion included, we love that for us), then parse it. the full package deal π¦
πΈ SYNOPSIS πΈ
#include <ecoli/editline.h>
struct ec_pnode * ec_editline_parse(
struct ec_editline *editline /* The pointer to the ec_editline structure. */
);
that's the whole vibe right there π
π DESCRIPTION π
Okay so bestie, picture this: it's basically ec_editline_gets() (iconic behavior, we stan), except β and this is the main character moment β the string result gets parsed using the grammar node once it succeeds. β¨
Like, gets() hands you the raw line, and this one hands you the glow-up. Same energy, more power. π«Ά
β RETURN VALUE β
You get back an allocated ec_pnode holding the parse result. π
Real talk though: it must be freed by the caller using ec_pnode_free(). No leaking, bestie, that's not the vibe. Memory hygiene is highkey iconic. π§
And on error? You get NULL. That's it. That's the whole thing. no cap. π
π SEE ALSO π
Squad goals, all of them β go read these too, iykyk:
ec_editline_get_el(3)ec_editline_set_prompt(3)ec_editline_complete(3)ec_editline_set_prompt_esc(3)ec_editline_free(3)ec_editline_term_size(3)ec_editline_gets(3)ec_editline_interact(3)ec_editline_set_node(3)ec_editline_set_history(3)ec_editline(3)ec_editline_get_node(3)ec_editline_curline(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
okay that's the whole page, you ate that fr fr π
this little masterpiece came to you from libecoli and it's dated 2026-06-11 β manifesting it ages as gracefully as it deserves πβ¨ mwah, bye bestie! ππ¦
π¦ 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