ec_str_parse_llint - Man Page

Parse a string for a signed integer.

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

Return Value

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

See Also

ec_str_startswith(3), ec_str_is_space(3), ec_strcmp_count(3), ec_str_parse_ullint(3), ec_str_quote(3), ec_str_wrap(3)

Referenced By

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

2026-06-11 Libecoli Programmer's Manual