Lines Matching refs:s
80 size_t strnlen(const char *s, size_t maxlen) in strnlen() argument
82 const char *es = s; in strnlen()
88 return (es - s); in strnlen()
149 size_t strlen(const char *s) in strlen() argument
153 for (sc = s; *sc != '\0'; ++sc) in strlen()
155 return sc - s; in strlen()
185 char *strchr(const char *s, int c) in strchr() argument
187 while (*s != (char)c) in strchr()
188 if (*s++ == '\0') in strchr()
190 return (char *)s; in strchr()
224 static const char *_parse_integer_fixup_radix(const char *s, unsigned int *base) in _parse_integer_fixup_radix() argument
227 if (s[0] == '0') { in _parse_integer_fixup_radix()
228 if (_tolower(s[1]) == 'x' && isxdigit(s[2])) in _parse_integer_fixup_radix()
235 if (*base == 16 && s[0] == '0' && _tolower(s[1]) == 'x') in _parse_integer_fixup_radix()
236 s += 2; in _parse_integer_fixup_radix()
237 return s; in _parse_integer_fixup_radix()
248 static unsigned int _parse_integer(const char *s, in _parse_integer() argument
258 unsigned int c = *s; in _parse_integer()
281 s++; in _parse_integer()
287 static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res) in _kstrtoull() argument
292 s = _parse_integer_fixup_radix(s, &base); in _kstrtoull()
293 rv = _parse_integer(s, base, &_res); in _kstrtoull()
298 s += rv; in _kstrtoull()
299 if (*s == '\n') in _kstrtoull()
300 s++; in _kstrtoull()
301 if (*s) in _kstrtoull()
323 int kstrtoull(const char *s, unsigned int base, unsigned long long *res) in kstrtoull() argument
325 if (s[0] == '+') in kstrtoull()
326 s++; in kstrtoull()
327 return _kstrtoull(s, base, res); in kstrtoull()
330 static int _kstrtoul(const char *s, unsigned int base, unsigned long *res) in _kstrtoul() argument
335 rv = kstrtoull(s, base, &tmp); in _kstrtoul()
359 int boot_kstrtoul(const char *s, unsigned int base, unsigned long *res) in boot_kstrtoul() argument
367 return kstrtoull(s, base, (unsigned long long *)res); in boot_kstrtoul()
369 return _kstrtoul(s, base, res); in boot_kstrtoul()