EC_EDITLINE_PARSE(3)

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

πŸ’– 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:


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