EC_NODE_CONFIG_NODE_LIST_TO_TABLE(3)

πŸ“¦
version 0.11.7 Β· 5 versions
, in fedora 44

πŸ’– EC_NODE_CONFIG_NODE_LIST_TO_TABLE(3) πŸ’–

okay so bestie, welcome to the Libecoli Programmer's Manual, and this page is literally about ec_node_config_node_list_to_table(3). yes the name is a whole mouthful, we're gonna get through it together 🫢


✨ NAME ✨

ec_node_config_node_list_to_table β€” Build a node table from a node list in an ec_config.

like, you have a list, you want a table. iconic behaviour honestly πŸ’…


🌸 SYNOPSIS 🌸

#include <ecoli/node_helper.h>

struct ec_node ** ec_node_config_node_list_to_table(
    /*
     * The configuration (type must be a list of nodes). If it is NULL, an
     * error is returned.
     */
    const struct ec_config   *config,
    /*
     * The length of the allocated table on success, or 0 on error.
     */
    size_t                   *len
);

so like, two args, both of them matter, no notes πŸ’€


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the tea: this function takes a node configuration as a parameter, and that thing must be a node list. from that list, it builds you a whole node table. and a reference is taken for each node β€” so like, every node in the table gets a lil glow-up reference, you're welcome ✨

on error, no reference is taken. periodt, don't come for her πŸ’€

πŸŽ€ STRUCTURES πŸŽ€

Structure storing the configuration data. it's giving very demure, very mindful struct energy 🌸

struct ec_config {
    union ec_config::@165033305204240054252215261010262276266146032272  @204272232073016241350260013126061051223010235320;
};

yeah that member name is a whole jumpscare but we copy it exactly, no cap πŸ™ˆ


πŸ’œ RETURN VALUE πŸ’œ

the allocated node table, bestie. and it must be freed by the caller β€” like actually, this is not a drill:

  • each entry must be freed with ec_node_free()
  • the table itself with free()
on error, NULL is returned and errno is set. so check your errno, she's talking πŸ‘‘

🌈 SEE ALSO 🌈

the whole friend group, fr fr, all of them showing up to the party:

no skips, we play the whole playlist πŸ’–


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


and that's the whole page bestie!! this came from the libecoli manual, dated 2026-06-11, and the page is EC_NODE_C...T_TO_TABLE(3) β€” mwah, go forth and build those tables πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from