Lines Matching refs:s

280 char *strchr(const char *s, int c)  in strchr()  argument
282 for (; *s != (char)c; ++s) in strchr()
283 if (*s == '\0') in strchr()
285 return (char *)s; in strchr()
299 char *strchrnul(const char *s, int c) in strchrnul() argument
301 while (*s && *s != (char)c) in strchrnul()
302 s++; in strchrnul()
303 return (char *)s; in strchrnul()
314 char *strrchr(const char *s, int c) in strrchr() argument
318 if (*s == (char)c) in strrchr()
319 last = s; in strrchr()
320 } while (*s++); in strrchr()
333 char *strnchr(const char *s, size_t count, int c) in strnchr() argument
335 for (; count-- && *s != '\0'; ++s) in strnchr()
336 if (*s == (char)c) in strnchr()
337 return (char *)s; in strnchr()
365 char *strim(char *s) in strim() argument
370 size = strlen(s); in strim()
372 return s; in strim()
374 end = s + size - 1; in strim()
375 while (end >= s && isspace(*end)) in strim()
379 return skip_spaces(s); in strim()
388 size_t strlen(const char *s) in strlen() argument
392 for (sc = s; *sc != '\0'; ++sc) in strlen()
394 return sc - s; in strlen()
405 size_t strnlen(const char *s, size_t count) in strnlen() argument
409 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
411 return sc - s; in strnlen()
422 size_t strspn(const char *s, const char *accept) in strspn() argument
428 for (p = s; *p != '\0'; ++p) { in strspn()
449 size_t strcspn(const char *s, const char *reject) in strcspn() argument
455 for (p = s; *p != '\0'; ++p) { in strcspn()
500 char *strsep(char **s, const char *ct) in strsep() argument
502 char *sbegin = *s; in strsep()
511 *s = end; in strsep()
553 int strtobool(const char *s, bool *res) in strtobool() argument
555 switch (s[0]) { in strtobool()
582 void *memset(void *s, int c, size_t count) in memset() argument
584 char *xs = s; in memset()
588 return s; in memset()
607 void memzero_explicit(void *s, size_t count) in memzero_explicit() argument
609 memset(s, 0, count); in memzero_explicit()
610 barrier_data(s); in memzero_explicit()
627 const char *s = src; in memcpy() local
630 *tmp++ = *s++; in memcpy()
648 const char *s; in memmove() local
652 s = src; in memmove()
654 *tmp++ = *s++; in memmove()
658 s = src; in memmove()
659 s += count; in memmove()
661 *--tmp = *--s; in memmove()
774 void *memchr(const void *s, int c, size_t n) in memchr() argument
776 const unsigned char *p = s; in memchr()