EC_NODE_STR(3)

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

πŸ’– EC_NODE_STR(3) πŸ’–

okay bestie, welcome to the Libecoli Programmer's Manual β€” this one's a lil baby page but it's lowkey iconic πŸŽ€


✨ NAME ✨

ec_node_str β€” makes a string node that matches one specific string. that's it. that's the whole job. slay πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ecoli/node_str.h>

struct ec_node * ec_node_str(
    const char   *id,   /* The node identifier. */
    const char   *str   /* The string to match. */
);

so you're pulling in <ecoli/node_str.h>, and then calling ec_node_str() with two args:

  • id β€” the node identifier, aka who this node is in the group chat 🫢
  • str β€” the string to match, aka the exact vibe this node is looking for ✨

πŸ’œ RETURN VALUE πŸ’œ

you get the node back. that's the win, that's the main character moment πŸ‘‘

but if it fails, you get NULL β€” and errno is set, so go check it, no cap 😭

🌸 SEE ALSO 🌸


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


and that's the whole page, bestie, you ate it up fr fr πŸ’–βœ¨ this was libecoli, dated 2026-06-11 β€” go forth and match some strings, mwah 🫢🌈

πŸ“¦ where this page comes from