EC_PNODE_COUNT(3)
π NAME π
ec_pnode_count β bestie, this one literally counts how many times a node shows up in a parse subtree π
so real quick, we're in the Libecoli Programmer's Manual and this page is the one and only EC_PNODE_COUNT(3) β¨
π¦ SYNOPSIS π¦
#include <ecoli/parse.h>
unsigned int ec_pnode_count(
/*
* The node of the parsing tree where the search starts.
*/
const struct ec_pnode *root,
const char *id /* The node identifier string to match. */
);
okay so here's the tea β you hand it two things:
rootβ aconst struct ec_pnode *, and it's literally the node of the parsing tree where the search starts π«Άidβ aconst char *, the node identifier string to match π
and it gives you back an unsigned int β no cap β¨
πΈ RETURN VALUE πΈ
the number of nodes matching the identifier. that's it, that's the whole vibe π (it's unsigned int, so no negatives, no drama, just counting π)
π SEE ALSO π
the whole friend group, go say hi π―ββοΈ
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_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.
lowkey iconic behavior from the Libecoli Programmer's Manual, dated2026-06-11, servingEC_PNODE_COUNT(3)realness ππ β¨ mwah, periodt π«Ά
π¦ 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