Lines Matching refs:s
225 char * strchr(const char * s, int c) in strchr() argument
227 for(; *s != (char) c; ++s) in strchr()
228 if (*s == '\0') in strchr()
230 return (char *) s; in strchr()
234 const char *strchrnul(const char *s, int c) in strchrnul() argument
236 for (; *s != (char)c; ++s) in strchrnul()
237 if (*s == '\0') in strchrnul()
239 return s; in strchrnul()
248 char * strrchr(const char * s, int c) in strrchr() argument
250 const char *p = s + strlen(s); in strrchr()
254 } while (--p >= s); in strrchr()
264 size_t strlen(const char * s) in strlen() argument
268 for (sc = s; *sc != '\0'; ++sc) in strlen()
270 return sc - s; in strlen()
280 size_t strnlen(const char * s, size_t count) in strnlen() argument
284 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
286 return sc - s; in strnlen()
297 size_t strcspn(const char *s, const char *reject) in strcspn() argument
303 for (p = s; *p != '\0'; ++p) { in strcspn()
315 char * strdup(const char *s) in strdup() argument
319 if ((s == NULL) || in strdup()
320 ((new = malloc (strlen(s) + 1)) == NULL) ) { in strdup()
324 strcpy (new, s); in strdup()
328 char * strndup(const char *s, size_t n) in strndup() argument
333 if (s == NULL) in strndup()
336 len = strlen(s); in strndup()
345 strncpy(new, s, len); in strndup()
359 size_t strspn(const char *s, const char *accept) in strspn() argument
365 for (p = s; *p != '\0'; ++p) { in strspn()
407 char * strtok(char * s,const char * ct) in strtok() argument
411 sbegin = s ? s : ___strtok; in strtok()
440 char * strsep(char **s, const char *ct) in strsep() argument
442 char *sbegin = *s, *end; in strsep()
450 *s = end; in strsep()
464 char *strswab(const char *s) in strswab() argument
468 if ((NULL == s) || ('\0' == *s)) { in strswab()
472 for (p=(char *)s, q=p+1; (*p != '\0') && (*q != '\0'); p+=2, q+=2) { in strswab()
480 return (char *) s; in strswab()
493 void * memset(void * s,int c,size_t count) in memset() argument
495 unsigned long *sl = (unsigned long *) s; in memset()
503 if ( ((ulong)s & (sizeof(*sl) - 1)) == 0) { in memset()
518 return s; in memset()
568 char *tmp, *s; in memmove() local
586 s = (char *) src + count; in memmove()
588 *--tmp = *--s; in memmove()
672 void *memchr(const void *s, int c, size_t n) in memchr() argument
674 const unsigned char *p = s; in memchr()