EC_STR_PARSE_ULLINT(3)
β¨ EC_STR_PARSE_ULLINT β¨
okay so bestie, welcome to the Libecoli Programmer's Manual π this one's about ec_str_parse_ullint β she parses a string into an unsigned integer, and she does it flawlessly. no cap. π
πΈ NAME πΈ
ec_str_parse_ullint β parse a string for an unsigned integer π
π¦ SYNOPSIS π¦
#include <ecoli/string.h>
int ec_str_parse_ullint(
const char *str, /* The string to parse. */
unsigned int base, /* The base (0 means "guess"). */
uint64_t min, /* The minimum allowed value. */
uint64_t max, /* The maximum allowed value. */
uint64_t *val /* The pointer to the value to be set on success. */
);
like, look at her. five args, all business π
strβ the string you want parsed, bestie.baseβ the base. and listen,0means "guess" π she'll figure it out herself, main character energy.minβ the minimum allowed value.maxβ the maximum allowed value.valβ pointer to the value that gets set on success. on success only, ok? don't come for her otherwise π
π RETURN VALUE π
on success? she returns 0. iconic. β¨
otherwise she returns -1 and sets errno β so go check errno, she left you a note π
ngl if you're ignoringerrnoafter a-1that's a you problem, not a her problem π
π SEE ALSO π
the whole squad, fr fr:
ec_str_parse_llint(3)ec_str_startswith(3)ec_str_is_space(3)ec_strcmp_count(3)ec_str_quote(3)ec_str_wrap(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie π«Ά this was libecoli, dated 2026-06-11, and honestly? she ate. go parse something. periodt. π β¨πΈ
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms