14 #define NULL ((void*)0)
18 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
19 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
20 || defined(_BSD_SOURCE)
21 #define __NEED_locale_t
24 #include <bits/alltypes.h>
26 void *memcpy (void *__restrict, const void *__restrict, size_t);
27 void *memmove (void *, const void *, size_t);
28 void *memset (void *, int, size_t);
29 int memcmp (const void *, const void *, size_t);
30 void *memchr (const void *, int, size_t);
32 char *strcpy (char *__restrict, const char *__restrict);
33 char *strncpy (char *__restrict, const char *__restrict, size_t);
35 char *strcat (char *__restrict, const char *__restrict);
36 char *strncat (char *__restrict, const char *__restrict, size_t);
38 int strcmp (const char *, const char *);
39 int strncmp (const char *, const char *, size_t);
41 int strcoll (const char *, const char *);
42 size_t strxfrm (char *__restrict, const char *__restrict, size_t);
44 char *strchr (const char *, int);
45 char *strrchr (const char *, int);
47 size_t strcspn (const char *, const char *);
48 size_t strspn (const char *, const char *);
49 char *strpbrk (const char *, const char *);
50 char *strstr (const char *, const char *);
51 char *strtok (char *__restrict, const char *__restrict);
53 size_t strlen (const char *);
57 #if defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
61 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
62 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
63 || defined(_BSD_SOURCE)
64 char *strtok_r (char *__restrict, const char *__restrict, char **__restrict);
65 int strerror_r (int, char *, size_t);
66 char *stpcpy(char *__restrict, const char *__restrict);
67 char *stpncpy(char *__restrict, const char *__restrict, size_t);
68 size_t strnlen (const char *, size_t);
69 char *strdup (const char *);
70 char *strndup (const char *, size_t);
72 char *strerror_l (int, locale_t);
73 int strcoll_l (const char *, const char *, locale_t);
74 size_t strxfrm_l (char *__restrict, const char *__restrict, size_t, locale_t);
77 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
78 || defined(_BSD_SOURCE)
79 void *memccpy (void *__restrict, const void *__restrict, int, size_t);
82 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
83 char *strsep(char **, const char *);
84 size_t strlcat (char *, const char *, size_t);
85 size_t strlcpy (char *, const char *, size_t);
89 #define strdupa(x) strcpy(alloca(strlen(x)+1),x)
90 int strverscmp (const char *, const char *);
91 int strcasecmp_l (const char *, const char *, locale_t);
92 int strncasecmp_l (const char *, const char *, size_t, locale_t);
93 char *strchrnul(const char *, int);
94 char *strcasestr(const char *, const char *);
95 void *memmem(const void *, size_t, const void *, size_t);
96 void *memrchr(const void *, int, size_t);
97 void *mempcpy(void *, const void *, size_t);