Lines Matching refs:count
112 char *strncpy(char *dest, const char *src, size_t count) in strncpy() argument
116 while (count) { in strncpy()
120 count--; in strncpy()
177 ssize_t strscpy(char *dest, const char *src, size_t count) in strscpy() argument
180 size_t max = count; in strscpy()
183 if (count == 0) in strscpy()
214 count -= sizeof(unsigned long); in strscpy()
218 while (count) { in strscpy()
226 count--; in strscpy()
281 ssize_t strscpy_pad(char *dest, const char *src, size_t count) in strscpy_pad() argument
285 written = strscpy(dest, src, count); in strscpy_pad()
286 if (written < 0 || written == count - 1) in strscpy_pad()
289 memset(dest + written + 1, 0, count - written - 1); in strscpy_pad()
325 char *strncat(char *dest, const char *src, size_t count) in strncat() argument
329 if (count) { in strncat()
333 if (--count == 0) { in strncat()
351 size_t strlcat(char *dest, const char *src, size_t count) in strlcat() argument
358 BUG_ON(dsize >= count); in strlcat()
361 count -= dsize; in strlcat()
362 if (len >= count) in strlcat()
363 len = count-1; in strlcat()
402 int strncmp(const char *cs, const char *ct, size_t count) in strncmp() argument
406 while (count) { in strncmp()
413 count--; in strncmp()
479 char *strnchr(const char *s, size_t count, int c) in strnchr() argument
481 for (; count-- && *s != '\0'; ++s) in strnchr()
551 size_t strnlen(const char *s, size_t count) in strnlen() argument
555 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
572 size_t count = 0; in strspn() local
580 return count; in strspn()
581 ++count; in strspn()
583 return count; in strspn()
599 size_t count = 0; in strcspn() local
604 return count; in strcspn()
606 ++count; in strcspn()
608 return count; in strcspn()
699 void *memset(void *s, int c, size_t count) in memset() argument
703 while (count--) in memset()
724 void memzero_explicit(void *s, size_t count) in memzero_explicit() argument
726 memset(s, 0, count); in memzero_explicit()
742 void *memset16(uint16_t *s, uint16_t v, size_t count) in memset16() argument
746 while (count--) in memset16()
764 void *memset32(uint32_t *s, uint32_t v, size_t count) in memset32() argument
768 while (count--) in memset32()
786 void *memset64(uint64_t *s, uint64_t v, size_t count) in memset64() argument
790 while (count--) in memset64()
807 void *memcpy(void *dest, const void *src, size_t count) in memcpy() argument
812 while (count--) in memcpy()
828 void *memmove(void *dest, const void *src, size_t count) in memmove() argument
836 while (count--) in memmove()
840 tmp += count; in memmove()
842 s += count; in memmove()
843 while (count--) in memmove()
859 __visible int memcmp(const void *cs, const void *ct, size_t count) in memcmp() argument
864 for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--) in memcmp()