Lines Matching defs:max_chars
63 static noinline unsigned long long simple_strntoull(const char *startp, size_t max_chars, char **endp, unsigned int base)
72 if (prefix_chars < max_chars) {
73 rv = _parse_integer_limit(cp, base, &result, max_chars - prefix_chars);
78 cp = startp + max_chars;
133 static long long simple_strntoll(const char *cp, size_t max_chars, char **endp,
137 * simple_strntoull() safely handles receiving max_chars==0 in the
138 * case cp[0] == '-' && max_chars == 1.
139 * If max_chars == 0 we can drop through and pass it to simple_strntoull()
142 if (*cp == '-' && max_chars > 0)
143 return -simple_strntoull(cp + 1, max_chars - 1, endp, base);
145 return simple_strntoull(cp, max_chars, endp, base);