19 #ifdef __STDC_WANT_LIB_EXT1__ 33 extern errno_t memcpy_s(
void *restrict dest, rsize_t dest_max,
const void *restrict src, rsize_t n);
44 extern errno_t memmove_s(
void *dest, rsize_t dest_max,
const void *src, rsize_t n);
55 extern errno_t memset_s(
void *block, rsize_t block_max,
int c, rsize_t n);
65 extern size_t strnlen_s(
const char *s,
size_t s_max);
77 extern errno_t strcpy_s(
char *restrict dest, rsize_t dest_max,
const char *restrict src);
91 const char *restrict src,
104 extern errno_t strcat_s(
char *restrict dest, rsize_t dest_max,
const char *restrict src);
119 const char *restrict src,
143 void *
memcpy(
void *dest,
const void *src,
size_t n) __attribute__ ((nonnull));
152 void *
memmove(
void *dest,
const void *src,
size_t n) __attribute__ ((nonnull));
163 int memcmp(
const void *s1,
const void *s2,
size_t n) __attribute__ ((nonnull));
172 void *
memset(
void *block,
int c,
size_t size) __attribute__ ((nonnull));
189 size_t strlen(
const char *s) __attribute__ ((nonnull));
206 size_t strnlen(
const char * s,
size_t n) __attribute__ ((nonnull));
231 char *
strcpy(
char *dest,
const char *src) __attribute__ ((nonnull));
257 char *
strncpy(
char *dest,
const char *src,
size_t n) __attribute__ ((nonnull));
265 char *
strdup(
const char *s) __attribute__ ((nonnull));
289 char *
strstr(
const char *text,
const char *pattern) __attribute__ ((nonnull));
315 char *
strncat(
char *dest,
const char *src,
size_t n) __attribute__ ((nonnull));
339 size_t strlcat(
char *dest,
const char *src,
size_t n) __attribute__ ((nonnull));
364 char *
strcat(
char *dest,
const char *src) __attribute__ ((nonnull));
403 int strcmp(
const char *s1,
const char *s2) __attribute__ ((nonnull));
443 int strncmp(
const char *s1,
const char *s2,
size_t n) __attribute__ ((nonnull));
463 char *
strrchr(
const char *s,
int c) __attribute__ ((nonnull));
480 void *
memchr(
const void *s,
int c,
size_t n) __attribute__ ((nonnull));
489 void *
memrchr(
const void *s,
int c,
size_t n) __attribute__ ((nonnull));
509 char *
strchr(
const char *s,
int c) __attribute__ ((nonnull));
518 char *
strchrnul(
const char *s,
int c) __attribute__ ((nonnull));
536 size_t strcspn(
const char *s,
const char *reject);
560 char *
strtok(
char *str,
const char *delim);
571 char *
strtok_r(
char *_restrict_ s,
const char *_restrict_ sep,
char **_restrict_ p);
582 int strerror_r(
int errnum,
char *buf,
size_t buflen);
size_t strlcat(char *dest, const char *src, size_t n)
Append the NUL-terminated string src to the end of dest string, overwriting the terminating null byte...
void * memcpy(void *dest, const void *src, size_t n)
Copy memory area from src to dst. The memory must not overlap. To copy overlapped area use memmove() ...
void * memmove(void *dest, const void *src, size_t n)
Copy memory area from src to dest. The memory may overlap.
char * strtok(char *str, const char *delim)
Function breaks a string into a sequence of zero or more nonempty tokens.
char * strrchr(const char *s, int c)
Find last occurence of character c in string s.
const char * strerror(int errnum)
Return a pointer to a string that describes the error code passed in the argument errnum...
int memcmp(const void *s1, const void *s2, size_t n)
Compare fist n bytes of memory pointed by s1 and s2.
char * strdup(const char *s)
Return a pointer to a new string which is a duplicate of the string s. Memory for the new string is o...
char * strchr(const char *s, int c)
Find first occurence of character c in string s.
char * strtok_r(char *_restrict_ s, const char *_restrict_ sep, char **_restrict_ p)
Function breaks a string into a sequence of zero or more nonempty tokens.
void * memset(void *block, int c, size_t size)
Fill size bytes with a constant value.
int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
Accept a connection on a socket.
size_t strnlen(const char *s, size_t n)
Calculate the length of the fixed-size string s, excluding the terminating null byte ('\0')...
int strncmp(const char *s1, const char *s2, size_t n)
Compare at most n bytes of two strings s1 and s2.
errno_t strcat_s(char *restrict dest, rsize_t dest_max, const char *restrict src)
Check arguments and append the src string to the dest string, overwriting the terminating null byte (...
int strcmp(const char *s1, const char *s2)
Compare the two strings s1 and s2.
void * memrchr(const void *s, int c, size_t n)
Find a character in an area of memory.
int strerror_r(int errnum, char *buf, size_t buflen)
Returns the error string in the user-supplied buf of length buflen. XSI-compliant version...
char * strncat(char *dest, const char *src, size_t n)
Append the src string to the dest string, overwriting the terminating null byte ('\0') at the end of ...
errno_t strerror_s(char *buf, rsize_t bufmax, errno_t errnum)
Check arguments and return a pointer to a buf string that describes the errnum error code...
size_t strcspn(const char *s, const char *reject)
Calculate the length of the initial segment of s which consists entirely of bytes not in reject...
errno_t memset_s(void *block, rsize_t block_max, int c, rsize_t n)
Check arguments and fill n bytes of block sized memory with c constant value.
int errno_t
Definition: errno.h:297
char * strstr(const char *text, const char *pattern)
Find the first occurrence of the substring pattern in the string text. The terminating null bytes ('\...
size_t strspn(const char *s, const char *accept)
Calculate the length (in bytes) of the initial segment of s which consists entirely of bytes in accep...
char * strcat(char *dest, const char *src)
Append the src string to the dest string, overwriting the terminating null byte ('\0') at the end of ...
char * strcpy(char *dest, const char *src)
Copy the string pointed to by src, including the terminating null byte ('\0'), to the buffer pointed ...
errno_t memmove_s(void *dest, rsize_t dest_max, const void *src, rsize_t n)
Check arguments and copy src sized memory area to dest. Memory may be overlapped. ...
size_t strlen(const char *s)
Calculate the length of the string s, excluding the terminating null byte ('\0'). ...
errno_t strncpy_s(char *restrict dest, rsize_t dest_max, const char *restrict src, rsize_t n)
Check arguments and copy at most n bytes of the src string, including the terminating null byte ('\0'...
errno_t strncat_s(char *restrict dest, rsize_t dest_max, const char *restrict src, rsize_t n)
Check arguments and append at most n bytes of src string to the dest string, overwriting the terminat...
void * memchr(const void *s, int c, size_t n)
Find a character in an area of memory.
errno_t memcpy_s(void *restrict dest, rsize_t dest_max, const void *restrict src, rsize_t n)
Check arguments and copy src sized memory area to dest. Memory must not be overlapped. To copy overlapped area use memmove_s() function.
errno_t strcpy_s(char *restrict dest, rsize_t dest_max, const char *restrict src)
Check arguments and copy the src string, including the terminating null byte ('\0'), to the dest sized buffer. If n is bigger than size of src then the remaining characters (after '\0') are unspecified.
char * strncpy(char *dest, const char *src, size_t n)
Copy at most n bytes of the string pointed to by src, including the terminating null byte ('\0')...
size_t strnlen_s(const char *s, size_t s_max)
Check arguments and calculate the length of the s fixed-size string, excluding the terminating null b...
char * strchrnul(const char *s, int c)
Find first occurence of character c in string s.