ec_str_parse_ullint - Man Page

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. */
);

Return Value

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

See Also

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)

Referenced By

ec_strcmp_count(3), ec_str_is_space(3), ec_str_parse_llint(3), ec_str_quote(3), ec_str_startswith(3), ec_str_wrap(3).

2026-06-11 Libecoli Programmer's Manual