Lines Matching defs:max_chars
56 static unsigned long long simple_strntoull(const char *startp, size_t max_chars,
66 if (prefix_chars < max_chars) {
67 rv = _parse_integer_limit(cp, base, &result, max_chars - prefix_chars);
72 cp = startp + max_chars;
126 static long long simple_strntoll(const char *cp, size_t max_chars, char **endp,
130 * simple_strntoull() safely handles receiving max_chars==0 in the
131 * case cp[0] == '-' && max_chars == 1.
132 * If max_chars == 0 we can drop through and pass it to simple_strntoull()
135 if (*cp == '-' && max_chars > 0)
136 return -simple_strntoull(cp + 1, max_chars - 1, endp, base);
138 return simple_strntoull(cp, max_chars, endp, base);