29void *
memcpy(
void *dest,
const void *src,
size_t size);
40int memcmp(
const void *str1,
const void *str2,
size_t size);
54void *
memchr(
const void *str,
int chr,
size_t size);
67void *
memmove(
void *dest,
const void *src,
size_t size);
78void *
memset(
void *s_ptr,
int val,
size_t size);
93int memset_s(
void *dest,
size_t destsz,
int byte,
size_t count);
101char *
strchr(
const char *str,
int chr);
113char *
strrchr(
const char *str,
int chr);
123size_t strlen(
const char *str);
135size_t strnlen(
const char *str,
size_t maxlen);
145unsigned long strtoul(
const char *nptr,
char **endptr,
int base);
156int strcmp(
const char *lhs,
const char *rhs);
size_t strlen(const char *str)
Calculates the length of a string.
Definition string.c:117
void * memcpy(void *dest, const void *src, size_t size)
Copies size bytes from memory area src to memory area dest.
Definition string.c:15
void * memset(void *s_ptr, int val, size_t size)
Fills the first size bytes of the memory area pointed to by s_ptr with the constant byte val.
Definition string.c:71
char * strchr(const char *str, int chr)
Locate the first occurrence of a character in a string.
Definition string.c:93
int strcmp(const char *lhs, const char *rhs)
Compare two null-terminated strings.
Definition string.c:171
int memcmp(const void *str1, const void *str2, size_t size)
Compares the first size bytes of memory areas str1 and str2.
Definition string.c:25
char * strrchr(const char *str, int chr)
Locates the last occurrence of a character in a string.
Definition string.c:104
int memset_s(void *dest, size_t destsz, int byte, size_t count)
Bounds-checked fill of dest with a constant byte.
Definition string.c:80
unsigned long strtoul(const char *nptr, char **endptr, int base)
Convert a string to an unsigned long integer.
Definition string.c:133
void * memchr(const void *str, int chr, size_t size)
Scans memory for a specific character.
Definition string.c:39
size_t strnlen(const char *str, size_t maxlen)
Calculates the length of a string up to a specified maximum.
Definition string.c:125
void * memmove(void *dest, const void *src, size_t size)
Copies size bytes from memory area src to memory area dest.
Definition string.c:50