Lines Matching defs:endp
63 static noinline unsigned long long simple_strntoull(const char *startp, size_t max_chars, char **endp, unsigned int base)
81 if (endp)
82 *endp = (char *)cp;
90 * @endp: A pointer to the end of the parsed string will be placed here
96 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)
98 return simple_strntoull(cp, INT_MAX, endp, base);
105 * @endp: A pointer to the end of the parsed string will be placed here
110 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)
112 return simple_strtoull(cp, endp, base);
119 * @endp: A pointer to the end of the parsed string will be placed here
124 long simple_strtol(const char *cp, char **endp, unsigned int base)
127 return -simple_strtoul(cp + 1, endp, base);
129 return simple_strtoul(cp, endp, base);
133 static long long simple_strntoll(const char *cp, size_t max_chars, char **endp,
143 return -simple_strntoull(cp + 1, max_chars - 1, endp, base);
145 return simple_strntoull(cp, max_chars, endp, base);
151 * @endp: A pointer to the end of the parsed string will be placed here
156 long long simple_strtoll(const char *cp, char **endp, unsigned int base)
158 return simple_strntoll(cp, INT_MAX, endp, base);