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:


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