EC_PNODE_LEN(3)
π EC_PNODE_LEN(3) π
okay bestie, welcome to the libecoli Programmer's Manual β¨ this one's short and sweet, it's giving "little function, big usefulness" energy and i'm obsessed π
πΈ NAME πΈ
ec_pnode_len β bestie, this literally gets you the number of strings in the parsed string vector π¦ no cap, that's the whole job.
β¨ SYNOPSIS β¨
#include <ecoli/parse.h>
size_t ec_pnode_len(
const struct ec_pnode *pnode /* A node in the parsing tree. */
);
so like, you hand it a pnode β and pnode is a node in the parsing tree, that's the vibe β and it hands you back a size_t. π
π₯ RETURN VALUE π₯
it gives you the number of strings in the parsed string vector π
and if the node is NULL, or it just has no string vector at all? you get back 0. periodt. no drama, no error, just a lil zero. π
π«Ά SEE ALSO π«Ά
the whole friend group, fr fr β go say hi to all of them:
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_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 whole page bestie, short king behavior but make it iconic ππ sending u the biggest kiss, this was libecoli, dated 2026-06-11, and yes the manual name in the corner said EC_PNODE_LEN(3) the whole time, main character energy only πππ
π¦ 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