3 int strlen(const char *s
)
15 int strcmp(const char *s1
, const char *s2
)
17 while (*s1
!= 0 && *s2
!= 0) {
28 void *memcpy(void *dest
, const void *src
, size_t n
)
31 const char *csrc
= src
;
41 int memcmp(const void *ptr1
, const void *ptr2
, size_t n
)
43 const unsigned char *p1
= ptr1
;
44 const unsigned char *p2
= ptr2
;
57 void *memset(void *dest
, int c
, size_t size
)
59 unsigned char *d
= (unsigned char *)dest
;
62 *d
++ = (unsigned char)c
;