EC_STR_PARSE_LLINT(3)

✨ NAME ✨

ec_str_parse_llint β€” parse a string for a signed integer, bestie πŸ’–

okay so welcome to the EC_STR_PARSE_LLINT(3) page from the Libecoli Programmer's Manual 🫢 this function is literally here to take a string and turn it into a signed integer. no cap.


🌸 SYNOPSIS 🌸

#include <ecoli/string.h>

int ec_str_parse_llint(
    const char   *str,   /* The string to parse. */
    unsigned int  base,  /* The base (0 means "guess"). */
    int64_t       min,   /* The minimum allowed value. */
    int64_t       max,   /* The maximum allowed value. */
    int64_t      *val    /* The pointer to the value to be set on success. */
);

like, you hand it a str to parse, a base where 0 means β€œguess” πŸ‘€, a min and a max for the allowed range, and a pointer val that gets set on success. it's giving β€œtrust me, I'll fill in the value” energy πŸ’…


πŸ’œ RETURN VALUE πŸ’œ

On success, return 0 ✨. Otherwise, return -1 and set errno 😭. periodt.


πŸ¦‹ SEE ALSO πŸ¦‹


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


libecoli Β· 2026-06-11 Β· EC_STR_PARSE_LLINT(3)

and that's the whole vibe, bestie 🌈 thanks for reading, slay responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from