EC_NODE_STR_SET_STR(3)

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

✨ NAME ✨

okay so this is ec_node_str_set_str(3) from the Libecoli Programmer's Manual β€” and bestie, it does exactly one iconic little thing: it sets the string that a string node is gonna match on. that's it, that's the whole job πŸ’…


🌸 SYNOPSIS 🌸

like, here's the vibe, fr fr:

#include <ecoli/node_str.h>

int ec_node_str_set_str(
    struct ec_node   *node,  /* The string node. */
    const char       *str    /* The string to match. It is duplicated internally. */
);

so you pass in a node (that's The string node., obviously) and a str (The string to match. It is duplicated internally. β€” yes queen, it makes its own copy, so don't stress about who owns the original 🫢).


πŸ’– RETURN VALUE πŸ’–

  • 0 β€” slay, it worked, success ✨
  • -1 β€” nope, error, and errno is set so you can go find out what went wrong 😭

πŸ¦‹ SEE ALSO πŸ¦‹

  • ec_node_str(3) β€” go read that one too, it's giving main character energy

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


and that's the whole page, bestie πŸ’œ this was EC_NODE_STR_SET_STR(3) from libecoli, dated 2026-06-11 β€” periodt, no cap, go forth and set those strings πŸŽ€βœ¨

πŸ“¦ where this page comes from