11#define NULL ((void *)0)
19size_t strlen(
const char *s);
27int strcmp(
const char *s1,
const char *s2);
36int strncmp(
const char *s1,
const char *s2,
size_t n);
44char *
strcpy(
char *dst,
const char *src);
53char *
strncpy(
char *dst,
const char *src,
size_t n);
61char *
strcat(
char *dst,
const char *src);
86char *
strtok(
char *str,
const char *delim);
95void *
memcpy(
void *dst,
const void *src,
size_t n);
104void *
memset(
void *dst,
int c,
size_t n);
113int memcmp(
const void *s1,
const void *s2,
size_t n);
122void *
memmove(
void *dst,
const void *src,
size_t n);
128char *
strncat(
char *dst,
const char *src,
size_t n);
131char *
strstr(
const char *haystack,
const char *needle);
134size_t strcspn(
const char *s,
const char *reject);
135char *
strtok_r(
char *str,
const char *delim,
char **saveptr);
139void *
memchr(
const void *s,
int c,
size_t n);
const char * strerror(int errnum)
return a string describing the given error number.
int strncmp(const char *s1, const char *s2, size_t n)
compares the first n bytes of the string s1 to the first n bytes of the string s2.
Definition string.c:26
void * memchr(const void *s, int c, size_t n)
int strcmp(const char *s1, const char *s2)
compares the string s1 to the string s2.
Definition string.c:15
char * strtok_r(char *str, const char *delim, char **saveptr)
int strcasecmp(const char *a, const char *b)
char * strpbrk(const char *s, const char *accept)
char * strsignal(int sig)
a description of a signal ("Terminated"), or "Unknown signal N"
char * strdup(const char *s)
int strcoll(const char *a, const char *b)
char * strcpy(char *dst, const char *src)
copies the string pointed to by src, including the terminating null byte ('\0'), to the buffer pointe...
Definition string.c:42
char * strtok(char *str, const char *delim)
tokenizes the string str using the delimiters specified in delim.
void * memmove(void *dst, const void *src, size_t n)
copies n bytes from memory area src to memory area dst.
Definition memory.c:16
char * strncpy(char *dst, const char *src, size_t n)
copies up to n bytes from the string pointed to by src to the buffer pointed to by dst.
Definition string.c:55
size_t strnlen(const char *s, size_t max)
int strncasecmp(const char *a, const char *b, size_t n)
size_t strspn(const char *s, const char *accept)
char * strcat(char *dst, const char *src)
appends the string pointed to by src to the end of the string pointed to by dst.
int memcmp(const void *s1, const void *s2, size_t n)
compares the first n bytes of the memory areas s1 and s2.
Definition memory.c:62
size_t strlen(const char *s)
computes the length of the string s.
Definition string.c:3
void * memset(void *dst, int c, size_t n)
fills the first n bytes of the memory area pointed to by dst with the constant byte c.
Definition memory.c:50
void * memcpy(void *dst, const void *src, size_t n)
copies n bytes from memory area src to memory area dst.
Definition memory.c:3
char * strstr(const char *haystack, const char *needle)
char * strchr(const char *s, int c)
appends up to n bytes from the string pointed to by src to the end of the string pointed to by dst.
char * strndup(const char *s, size_t n)
size_t strcspn(const char *s, const char *reject)
char * strncat(char *dst, const char *src, size_t n)
char * strrchr(const char *s, int c)
locates the last occurrence of c (converted to a char) in the string pointed to by s.
int accept(int fd, struct sockaddr *addr, socklen_t *addrlen)