EC_NODE_TYPE_LOOKUP(3)

EC_NODE_TYPE_LOOKUP(3) πŸ’–

okay bestie, welcome to the Libecoli Programmer's Manual β€” this one's a lil cutie, a lookup function, and honestly? she's giving ✨directory service✨


NAME πŸŽ€

ec_node_type_lookup β€” lookup a node type by name. that's it, that's the whole job πŸ’…


SYNOPSIS 🌸

#include <ecoli/node.h>

const struct ec_node_type * ec_node_type_lookup(
    const char   *name   /* The name of the node type to search. */
);

so you hand her a name β€” the name of the node type you're searching for β€” and she goes and finds it. iconic behaviour, no notes 🫢


RETURN VALUE πŸ’œ

she hands you back the node type you asked for β€” read-only bestie, do not try to mess with her, she is not yours to edit πŸ’€ β€” or she returns NULL if something went wrong. yep, NULL on error. that's the whole vibe check: node type if found, NULL on error. periodt. ✨

ngl, check for that NULL fr fr β€” she's not gonna warn you twice πŸ™ˆ

SEE ALSO πŸ¦‹

the whole girl group, in the order they showed up:


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


and that's the page, bestie 🫢 this was libecoli, dated 2026-06-11, and she ate, no cap πŸ’…βœ¨

πŸ“¦ where this page comes from