EC_NODE(3)
π EC_NODE(3) π
okay bestie, welcome to the libecoli programmer's manual β¨ this one's called ec_node, and it's giving main character constructor energy. let's get into it π«Ά
β¨ NAME β¨
ec_node β make a brand new node, using nothing but its type name. slay π
πΈ SYNOPSIS πΈ
#include <ecoli/node.h>
struct ec_node * ec_node(
const char *typename, /* The type name of the node to create. */
const char *id /* The node identifier. */
);
like, yes, that's the whole thing. two strings and a dream π
π¦ DESCRIPTION π¦
so here's the tea β β you call this function from user code, specifically for node types that don't ship their own special constructor. no custom builder? no problem. ec_node has you covered, bestie π
it's the generic plug-and-play way to spin up a node. literally just hand it a type name and an id and it does the thing β¨
π RETURN VALUE π
- on success? you get the new node π₯³ iconic, we love that for you
- on error? you get
NULLπ and honestly, vibe check failed, go check yourtypename
π₯ SEE ALSO π₯
the whole friend group π«Ά go read these too, iykyk:
ec_node_check_type(3)ec_node_iter(3)ec_node_attrs(3)ec_node_find(3)ec_node_type_name(3)ec_node_free(3)ec_node_id(3)ec_node_type_dump(3)ec_node_get_config(3)ec_node_schema_dump(3)ec_node_priv(3)ec_node_type_lookup(3)ec_node_clone(3)ec_node_dump(3)ec_node_desc(3)ec_node_iter_free(3)ec_node_iter_get_parent(3)ec_node_from_type(3)ec_node_type(3)ec_node_iter_next(3)ec_node_type_schema(3)ec_node_get_children_count(3)ec_node_get_type_name(3)ec_node_type_register(3)ec_node_set_config(3)ec_node_iter_get_node(3)ec_node_get_child(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie!! π this came from the libecoli programmer's manual, dated 2026-06-11, and it's EC_NODE(3) β go forth and construct some nodes, you absolute legend πβ¨π
π¦ 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