EC_NODE_UINT(3)

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

✨ EC_NODE_UINT ✨

okay bestie, welcome to ec_node_uint from the Libecoli Programmer's Manual β€” it's the little function that makes you a whole brand-new unsigned integer node πŸŽ€ no cap.


🌸 NAME 🌸

ec_node_uint β€” create an unsigned integer node. that's it, that's the whole vibe. a node. for unsigned ints. iconic πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ecoli/node_int.h>

struct ec_node * ec_node_uint(
    const char   *id,    /* The node identifier. */
    uint64_t      min,   /* The minimum valid value (included). */
    uint64_t      max,   /* The maximum valid value (included). */
    /*
     * The base to use for parsing. If 0, try to guess from prefix.
     */
    unsigned int  base
);

so like, four lil arguments, one big slay. here's the tea on each one πŸ“:

  • id β€” the node identifier, literally just the name tag for your node. *const char **.
  • min β€” the minimum valid value, and yes it's included (inclusive, bestie, we're generous). uint64_t.
  • max β€” the maximum valid value, also included. uint64_t.
  • base β€” the base to use for parsing, unsigned int. and the little comment says: if it's 0, try to guess from the prefix. so 0 = "figure it out yourself, king" πŸ‘‘

πŸ’– RETURN VALUE πŸ’–

you get the node back 🫢 … or NULL on error, and in that case errno is set. so like, check your return value, fr fr. don't be out here dereferencing NULL and acting surprised 😭


🌈 SEE ALSO 🌈

the whole friend group, go say hi:


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


and that's the page, bestie!! this was libecoli β€” dated 2026-06-11 β€” and yes the manpage title is literally EC_NODE_UINT(3) if you were wondering what to type. mwah πŸ’‹ go build something cute with it. periodt. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from