EC_PNODE_GET_PARENT(3)
β¨ EC_PNODE_GET_PARENT(3) β¨
okay bestie, welcome to the Libecoli Programmer's Manual π this one's short and sweet, like a lil snack before the main course, and it's literally just one function. no cap.
πΈ NAME πΈ
ec_pnode_get_parent β get the parent node in the parsing tree π«Ά
like, who's your daddy? this function knows.
π¦ SYNOPSIS π¦
#include <ecoli/parse.h>
struct ec_pnode * ec_pnode_get_parent(
const struct ec_pnode *pnode /* A node in the parsing tree. */
);
so you hand it a pnode, which the comment lovingly reminds us is A node in the parsing tree, and it hands you back a struct ec_pnode *. iconic behaviour, honestly.
π RETURN VALUE π
the parent node π
or β and this is the plot twist β NULL if it's the root π
like yeah, if you're at the top of the tree there's literally nobody above you, main character energy, no parent, just vibes. so NULL it is. periodt.
π SEE ALSO π
the whole friend group, fr fr. go read these too:
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_root(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)
iykyk π the family tree is deep.
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie π thanks for reading, mwah π this was libecoli, dated 2026-06-11, filed under EC_PNODE_GET_PARENT(3) β go get that parent node, you absolute legend πβ¨
π¦ 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