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()
642 int strtobool(const char *s, bool *res) in strtobool() argument
644 switch (s[0]) { in strtobool()
671 void *memset(void *s, int c, size_t count) in memset() argument
673 char *xs = s; in memset()
677 return s; in memset()
696 void memzero_explicit(void *s, size_t count) in memzero_explicit() argument
698 memset(s, 0, count); in memzero_explicit()
699 barrier_data(s); in memzero_explicit()
716 const char *s = src; in memcpy() local
719 *tmp++ = *s++; in memcpy()
737 const char *s; in memmove() local
741 s = src; in memmove()
743 *tmp++ = *s++; in memmove()
747 s = src; in memmove()
748 s += count; in memmove()
750 *--tmp = *--s; in memmove()
863 void *memchr(const void *s, int c, size_t n) in memchr() argument
865 const unsigned char *p = s; in memchr()
950 char *strreplace(char *s, char old, char new) in strreplace() argument
952 for (; *s; ++s) in strreplace()
953 if (*s == old) in strreplace()
954 *s = new; in strreplace()
955 return s; in strreplace()