Lines Matching refs:len
12 static void *malloc(size_t len);
31 void *_nolibc_memcpy_up(void *dst, const void *src, size_t len) in _nolibc_memcpy_up() argument
35 while (pos < len) { in _nolibc_memcpy_up()
43 void *_nolibc_memcpy_down(void *dst, const void *src, size_t len) in _nolibc_memcpy_down() argument
45 while (len) { in _nolibc_memcpy_down()
46 len--; in _nolibc_memcpy_down()
47 ((char *)dst)[len] = ((const char *)src)[len]; in _nolibc_memcpy_down()
56 void *memmove(void *dst, const void *src, size_t len) in memmove() argument
60 pos = len; in memmove()
68 while (len) { in memmove()
71 len--; in memmove()
78 void *memcpy(void *dst, const void *src, size_t len) in memcpy() argument
80 return _nolibc_memcpy_up(dst, src, len); in memcpy()
87 void *memset(void *dst, int b, size_t len) in memset() argument
91 while (len--) { in memset()
139 size_t len; in strlen() local
141 for (len = 0; str[len]; len++) in strlen()
143 return len; in strlen()
161 size_t len; in strnlen() local
163 for (len = 0; (len < maxlen) && str[len]; len++); in strnlen()
164 return len; in strnlen()
170 size_t len; in strdup() local
173 len = strlen(str); in strdup()
174 ret = malloc(len + 1); in strdup()
176 memcpy(ret, str, len + 1); in strdup()
184 size_t len; in strndup() local
187 len = strnlen(str, maxlen); in strndup()
188 ret = malloc(len + 1); in strndup()
190 memcpy(ret, str, len); in strndup()
191 ret[len] = '\0'; in strndup()
200 size_t len; in strlcat() local
203 for (len = 0; dst[len]; len++) in strlcat()
208 if (len < size) in strlcat()
209 dst[len] = c; in strlcat()
212 len++; in strlcat()
216 return len; in strlcat()
222 size_t len; in strlcpy() local
225 for (len = 0;;) { in strlcpy()
226 c = src[len]; in strlcpy()
227 if (len < size) in strlcpy()
228 dst[len] = c; in strlcpy()
231 len++; in strlcpy()
233 return len; in strlcpy()
270 size_t len; in strncpy() local
272 for (len = 0; len < size; len++) in strncpy()
273 if ((dst[len] = *src)) in strncpy()