EC_PNODE_GET_ROOT(3)
π ec_pnode_get_root β bestie, let's find the ROOT π
okay so this is a libecoli programmer's manual page, section 3, and it's about one very specific little guy: ec_pnode_get_root. it does exactly what the name says, no cap. it walks you back up to the top of the tree π³β¨
β¨ SYNOPSIS β¨
pull in the header first, obvi:
#include <ecoli/parse.h>
and here's the whole function signature, character for character, because we do NOT mess with signatures:
struct ec_pnode * ec_pnode_get_root(
struct ec_pnode *pnode /* A node in the parsing tree. */
);
so you hand it pnode β which is, per the comment, A node in the parsing tree. β and that's the whole vibe. π«Ά
πΈ DESCRIPTION πΈ
bestie the actual description here is so short and honestly it's iconic for it. it says:
you may also use EC_PNODE_GET_ROOT() instead, and that version keeps the const statement. π
that's it. that's the whole description. the macro is the const-preserving queen and the function is right there too. pick whichever one fits your code, iykyk. π§
π RETURN VALUE π
it returns the root of the parsing tree. that's the answer. that's the whole return value section. go get your root, main character. πβ
π¦ SEE ALSO π¦
the whole friend group, no one left behind:
ec_pnode_len(3)ec_pnode_get_strvec(3)ec_parse(3)ec_parse_strvec(3)ec_pnode(3)ec_pnode_free_children(3)ec_pnode_get_parent(3)ec_pnode_find_next(3)ec_pnode_get_first_child(3)ec_pnode_free(3)ec_pnode_dup(3)ec_pnode_matches(3)ec_pnode_dump(3)ec_pnode_unlink_child(3)ec_pnode_next(3)ec_pnode_del_last_child(3)ec_pnode_link_child(3)ec_pnode_count(3)ec_pnode_get_attrs(3)ec_pnode_get_last_child(3)ec_pnode_get_node(3)ec_pnode_find(3)ec_parse_child(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the page!! π written by the libecoli girlies for the Libecoli Programmer's Manual, dated 2026-06-11, filed under EC_PNODE_GET_ROOT(3). love that for us. mwah. ππΈπ¦
π¦ 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