11 #pragma mark - memory - 29 int memcmp(
const void* s1,
const void* s2,
size_t n);
45 void*
memset(
void* dest,
int c,
size_t n);
62 void*
memcpy(
void* __restrict dest,
const void* __restrict src,
size_t n);
78 void*
memmove(
void* dest,
const void* src,
size_t n);
94 void*
memchr(
const void* s,
int c,
size_t n);
111 void*
memmem(
const void* l,
size_t l_len,
const void* s,
size_t s_len);
113 #pragma mark - string - 127 size_t strlen(
const char* str);
144 size_t strnlen(
const char* str,
size_t maxlen);
164 char*
strcpy(
char* __restrict dst,
const char* __restrict src);
187 char*
strncpy(
char* __restrict dst,
const char* __restrict src,
size_t maxlen);
204 char*
strstr(
const char*
string,
const char* substring);
222 char*
strnstr(
const char* s,
const char* find,
size_t slen);
237 int strcmp(
const char* s1,
const char* s2);
255 int strncmp(
const char* s1,
const char* s2,
size_t n);
267 char*
strdup(
const char* str);
280 char*
strndup(
const char* str,
size_t n);
296 char*
strchr(
const char* s,
int c);
312 char*
strrchr(
const char* s,
int c);
332 char*
strcat(
char* __restrict dst,
const char* __restrict src);
355 char*
strncat(
char* __restrict dst,
const char* __restrict src,
size_t maxlen);
375 char*
strtok(
char* s,
const char* delim);
378 size_t strxfrm(
char* __restrict,
const char* __restrict,
size_t);
379 size_t strcspn(
const char*,
const char*);
380 size_t strspn(
const char*,
const char*);
381 char*
strpbrk(
const char*,
const char*);
382 int strcoll(
const char*,
const char*);
size_t strcspn(const char *, const char *)
size_t strspn(const char *, const char *)
char * strrchr(const char *s, int c)
Finds the last occurrence of c in the null-terminated byte string pointed to by s.
size_t strnlen(const char *str, size_t maxlen)
Returns the length of the given null-terminated byte string.
char * strnstr(const char *s, const char *find, size_t slen)
Finds the first occurrence of find in the initial slen characters of the object pointed to by s.
void * memmove(void *dest, const void *src, size_t n)
Copies n characters from the object pointed to by src to the object pointed to by dest.
char * strndup(const char *str, size_t n)
Duplicate n bytes of the passed in string str.
void * memmem(const void *l, size_t l_len, const void *s, size_t s_len)
Find substring s in memory area l.
int strncmp(const char *s1, const char *s2, size_t n)
Compares at most n characters of two possibly null-terminated arrays.
int memcmp(const void *s1, const void *s2, size_t n)
Compares the first n characters of the two objects pointed to by s1 and s2.
size_t strlen(const char *str)
Returns the length of the given null-terminated byte string.
char * strncpy(char *__restrict dst, const char *__restrict src, size_t maxlen)
Copies at most maxlen characters of the character array pointed to by src to character array pointed ...
char * strdup(const char *str)
Duplicate the passed in string str.
char * strchr(const char *s, int c)
Finds the first occurrence of c in the null-terminated byte string pointed to by s.
void * memset(void *dest, int c, size_t n)
Copies the value c into each of the first n characters of the object pointed to by dest.
char * strpbrk(const char *, const char *)
int strcoll(const char *, const char *)
char * strtok(char *s, const char *delim)
Finds the next token in a null-terminated byte string pointed to by s.
void * memcpy(void *__restrict dest, const void *__restrict src, size_t n)
Copies n characters from the object pointed to by src to the object pointed to by dest.
int strcmp(const char *s1, const char *s2)
Compares two null-terminated byte strings lexicographically.
char * strstr(const char *string, const char *substring)
Finds the first occurrence of the substring in the string.
size_t strxfrm(char *__restrict, const char *__restrict, size_t)
char * strncat(char *__restrict dst, const char *__restrict src, size_t maxlen)
Appends at most maxlen characters from the character array pointed to by src, to the end of the null-...
void * memchr(const void *s, int c, size_t n)
Finds the first occurrence of c in the initial n characters of the object pointed to by s.
int strerror_r(int, char *, size_t)
char * strcat(char *__restrict dst, const char *__restrict src)
Appends a copy of the null-terminated byte string pointed to by src to the end of the null-terminated...
char * strcpy(char *__restrict dst, const char *__restrict src)
Copies the null-terminated byte string pointed to by src to the character array whose first element i...