Home
last modified time | relevance | path

Searched refs:char_ptr (Results 1 – 6 of 6) sorted by relevance

/glibc-2.36/string/
Dstrnlen.c35 const char *char_ptr, *end_ptr = str + maxlen; in __strnlen() local
47 for (char_ptr = str; ((unsigned long int) char_ptr in __strnlen()
49 ++char_ptr) in __strnlen()
50 if (*char_ptr == '\0') in __strnlen()
52 if (char_ptr > end_ptr) in __strnlen()
53 char_ptr = end_ptr; in __strnlen()
54 return char_ptr - str; in __strnlen()
60 longword_ptr = (unsigned long int *) char_ptr; in __strnlen()
126 char_ptr = cp; in __strnlen()
129 char_ptr = cp + 1; in __strnlen()
[all …]
Dmemchr.c57 const unsigned char *char_ptr; in MEMCHR() local
67 for (char_ptr = (const unsigned char *) s; in MEMCHR()
68 n > 0 && (size_t) char_ptr % sizeof (longword) != 0; in MEMCHR()
69 --n, ++char_ptr) in MEMCHR()
70 if (*char_ptr == c) in MEMCHR()
71 return (void *) char_ptr; in MEMCHR()
73 longword_ptr = (const longword *) char_ptr; in MEMCHR()
142 char_ptr = (const unsigned char *) longword_ptr; in MEMCHR()
151 for (; n > 0; --n, ++char_ptr) in MEMCHR()
153 if (*char_ptr == c) in MEMCHR()
[all …]
Dmemrchr.c63 const unsigned char *char_ptr; in __memrchr() local
72 for (char_ptr = (const unsigned char *) s + n; in __memrchr()
73 n > 0 && ((unsigned long int) char_ptr in __memrchr()
76 if (*--char_ptr == c) in __memrchr()
77 return (void *) char_ptr; in __memrchr()
82 longword_ptr = (const unsigned long int *) char_ptr; in __memrchr()
183 char_ptr = (const unsigned char *) longword_ptr; in __memrchr()
187 if (*--char_ptr == c) in __memrchr()
188 return (void *) char_ptr; in __memrchr()
Dstrchrnul.c38 const unsigned char *char_ptr; in STRCHRNUL() local
47 for (char_ptr = (const unsigned char *) s; in STRCHRNUL()
48 ((unsigned long int) char_ptr & (sizeof (longword) - 1)) != 0; in STRCHRNUL()
49 ++char_ptr) in STRCHRNUL()
50 if (*char_ptr == c || *char_ptr == '\0') in STRCHRNUL()
51 return (void *) char_ptr; in STRCHRNUL()
56 longword_ptr = (unsigned long int *) char_ptr; in STRCHRNUL()
Dstrchr.c36 const unsigned char *char_ptr; in STRCHR() local
45 for (char_ptr = (const unsigned char *) s; in STRCHR()
46 ((unsigned long int) char_ptr & (sizeof (longword) - 1)) != 0; in STRCHR()
47 ++char_ptr) in STRCHR()
48 if (*char_ptr == c) in STRCHR()
49 return (void *) char_ptr; in STRCHR()
50 else if (*char_ptr == '\0') in STRCHR()
56 longword_ptr = (unsigned long int *) char_ptr; in STRCHR()
Dstrlen.c32 const char *char_ptr; in STRLEN() local
38 for (char_ptr = str; ((unsigned long int) char_ptr in STRLEN()
40 ++char_ptr) in STRLEN()
41 if (*char_ptr == '\0') in STRLEN()
42 return char_ptr - str; in STRLEN()
47 longword_ptr = (unsigned long int *) char_ptr; in STRLEN()