EC_PNODE_GET_LAST_CHILD(3)
π EC_PNODE_GET_LAST_CHILD π
okay bestie, welcome to the Libecoli Programmer's Manual β¨ this is the page for ec_pnode_get_last_child, and it is exactly what it sounds like. no plot twist. no cap. π
πΈ NAME πΈ
ec_pnode_get_last_child β get the last child of a node in the parsing tree.
likeβ¦ the literal last one. the final boss of the children. the one at the end of the sibling lineup π
π¦ SYNOPSIS π¦
#include <ecoli/parse.h>
struct ec_pnode * ec_pnode_get_last_child(
const struct ec_pnode *pnode /* A node in the parsing tree. */
);
so you roll up with a pnode β that's a node in the parsing tree, in case the comment wasn't giving β and it hands you back a struct ec_pnode *. iconic behaviour honestly π
β¨ RETURN VALUE β¨
you get the last child node, periodt. π«Ά
orβ¦ NULL if it has no child. yeah. sometimes the vibe check comes back empty and there's just nothing there π no children, no last child, no drama.
ngl, always check for that NULL before you go dereferencing, bestie. it's giving "safety first" π
π 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_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_node(3)ec_pnode_find(3)ec_parse_child(3)
(and yes, ec_pnode_get_first_child(3) is right there if you want the other end of the tree β the two of them are lowkey soulmates π₯Ή)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie, you ate it π
π this was libecoli, dated 2026-06-11, living under the name EC_PNODE_...LAST_CHILD(3) β mwah, stan, bye ππ¦β¨
π¦ 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