Lines Matching defs:endp
64 static unsigned long long simple_strntoull(const char *startp, char **endp, unsigned int base, size_t max_chars)
82 if (endp)
83 *endp = (char *)cp;
91 * @endp: A pointer to the end of the parsed string will be placed here
97 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)
99 return simple_strntoull(cp, endp, base, INT_MAX);
106 * @endp: A pointer to the end of the parsed string will be placed here
111 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)
113 return simple_strtoull(cp, endp, base);
117 unsigned long simple_strntoul(const char *cp, char **endp, unsigned int base,
120 return simple_strntoull(cp, endp, base, max_chars);
127 * @endp: A pointer to the end of the parsed string will be placed here
132 long simple_strtol(const char *cp, char **endp, unsigned int base)
135 return -simple_strtoul(cp + 1, endp, base);
137 return simple_strtoul(cp, endp, base);
142 static long long simple_strntoll(const char *cp, char **endp, unsigned int base, size_t max_chars)
151 return -simple_strntoull(cp + 1, endp, base, max_chars - 1);
153 return simple_strntoull(cp, endp, base, max_chars);
159 * @endp: A pointer to the end of the parsed string will be placed here
164 long long simple_strtoll(const char *cp, char **endp, unsigned int base)
166 return simple_strntoll(cp, endp, base, INT_MAX);