EC_NODE_SEQ_ADD(3)

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

✨ EC_NODE_SEQ_ADD ✨

okay bestie, welcome to the EC_NODE_SEQ_ADD page from the Libecoli Programmer's Manual πŸ’– β€” yes it's a manual page, yes it's about C, no it's not boring, come with me.


πŸ’« NAME πŸ’«

ec_node_seq_add β€” the girl whose whole job is: add a child to a sequence node. that's it. that's the function. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ecoli/node_seq.h>

int ec_node_seq_add(
    struct ec_node   *node,   /* The sequence node. */
    /*
     * The child node to add. It is consumed and will be freed when the parent
     * is freed, or immediately on error.
     */
    struct ec_node   *child
);

so you pull in the header, and you hand it two things πŸ‘‘:

  • node β€” the sequence node. the parent. the main character. the one receiving a whole new child. πŸ’…
  • child β€” the child node to add. and listen, this is the important part, bestie: it is consumed. it gets freed when the parent is freed, or immediately on error. so no, you do not get to keep it, do not free it yourself, do not pass it to anybody else after this. it's the parent's problem now. 🫢

🌸 RETURN VALUE 🌸

  • 0 on success β€” slay, we ate πŸ’–
  • -1 on error, and errno is set. yeah. check it. iykyk. 😭

🌈 SEE ALSO 🌈


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


and that's the whole page, bestie ✨ no cap, every single detail is in there and it's literally giving documentation πŸŽ€ this was libecoli, dated 2026-06-11, and if you need me i'll be in the group chat explaining sequence nodes again πŸ’œπŸ¦‹πŸ’…

πŸ“¦ where this page comes from