Lines Matching refs:s
369 char *strchr(const char *s, int c) in strchr() argument
371 for (; *s != (char)c; ++s) in strchr()
372 if (*s == '\0') in strchr()
374 return (char *)s; in strchr()
388 char *strchrnul(const char *s, int c) in strchrnul() argument
390 while (*s && *s != (char)c) in strchrnul()
391 s++; in strchrnul()
392 return (char *)s; in strchrnul()
403 char *strrchr(const char *s, int c) in strrchr() argument
407 if (*s == (char)c) in strrchr()
408 last = s; in strrchr()
409 } while (*s++); in strrchr()
422 char *strnchr(const char *s, size_t count, int c) in strnchr() argument
424 for (; count-- && *s != '\0'; ++s) in strnchr()
425 if (*s == (char)c) in strnchr()
426 return (char *)s; in strnchr()
454 char *strim(char *s) in strim() argument
459 size = strlen(s); in strim()
461 return s; in strim()
463 end = s + size - 1; in strim()
464 while (end >= s && isspace(*end)) in strim()
468 return skip_spaces(s); in strim()
477 size_t strlen(const char *s) in strlen() argument
481 for (sc = s; *sc != '\0'; ++sc) in strlen()
483 return sc - s; in strlen()
494 size_t strnlen(const char *s, size_t count) in strnlen() argument
498 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
500 return sc - s; in strnlen()
511 size_t strspn(const char *s, const char *accept) in strspn() argument
517 for (p = s; *p != '\0'; ++p) { in strspn()
538 size_t strcspn(const char *s, const char *reject) in strcspn() argument
544 for (p = s; *p != '\0'; ++p) { in strcspn()
589 char *strsep(char **s, const char *ct) in strsep() argument
591 char *sbegin = *s; in strsep()
600 *s = end; in strsep()
668 void *memset(void *s, int c, size_t count) in memset() argument
670 char *xs = s; in memset()
674 return s; in memset()
693 void memzero_explicit(void *s, size_t count) in memzero_explicit() argument
695 memset(s, 0, count); in memzero_explicit()
696 barrier_data(s); in memzero_explicit()
713 const char *s = src; in memcpy() local
716 *tmp++ = *s++; in memcpy()
734 const char *s; in memmove() local
738 s = src; in memmove()
740 *tmp++ = *s++; in memmove()
744 s = src; in memmove()
745 s += count; in memmove()
747 *--tmp = *--s; in memmove()
860 void *memchr(const void *s, int c, size_t n) in memchr() argument
862 const unsigned char *p = s; in memchr()
947 char *strreplace(char *s, char old, char new) in strreplace() argument
949 for (; *s; ++s) in strreplace()
950 if (*s == old) in strreplace()
951 *s = new; in strreplace()
952 return s; in strreplace()