EC_NODE_INT(3)

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

πŸ’– EC_NODE_INT(3) πŸ’–

okay bestie, welcome to the Libecoli Programmer's Manual β€” this is the page for EC_NODE_INT(3) and honestly? it's giving tiny but mighty. πŸŽ€


✨ NAME ✨

ec_node_int β€” Create a signed integer node.

like, that's it. that's the whole job. she makes you a signed int node and she does it flawlessly. πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta let the compiler know you're in:

#include <ecoli/node_int.h>

then here's the whole vibe, signature and all β€” comments preserved, no cap:

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

so yeah, you're handing her four things: an id (the node identifier, obvs), a min which is the minimum valid value (included) β€” included, bestie, don't forget that part β€” a max which is the maximum valid value (included), also included, and then base, the base to use for parsing, where if it's 0 she'll try to guess from prefix. main character behavior fr fr. πŸ”₯


πŸ¦‹ RETURN VALUE πŸ¦‹

she gives you back the node ✨ … or NULL on error, and in that case errno is set. 😭

not the NULL jump scare. check your errors, queen. 🫢

🌈 SEE ALSO 🌈

go read her sisters, they ate too:


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


okay that's the whole page, you're literally an expert now, no notes. πŸ’œ this lil beauty comes to you from libecoli, dated 2026-06-11, and it's EC_NODE_INT(3) forever and always. mwah. πŸ’‹βœ¨πŸ§š

πŸ“¦ where this page comes from