12 #define NULL ((void*)0)
16 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
17 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
18 #define __NEED_locale_t
21 #include <bits/alltypes.h>
23 void *memcpy (void *, const void *, size_t);
24 void *memmove (void *, const void *, size_t);
25 void *memset (void *, int, size_t);
26 int memcmp (const void *, const void *, size_t);
27 void *memchr (const void *, int, size_t);
29 char *strcpy (char *, const char *);
30 char *strncpy (char *, const char *, size_t);
32 char *strcat (char *, const char *);
33 char *strncat (char *, const char *, size_t);
35 int strcmp (const char *, const char *);
36 int strncmp (const char *, const char *, size_t);
38 int strcoll (const char *, const char *);
39 size_t strxfrm (char *, const char *, size_t);
41 char *strchr (const char *, int);
42 char *strrchr (const char *, int);
44 size_t strcspn (const char *, const char *);
45 size_t strspn (const char *, const char *);
46 char *strpbrk (const char *, const char *);
47 char *strstr (const char *, const char *);
48 char *strtok (char *, const char *);
50 size_t strlen (const char *);
55 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
56 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
57 char *strtok_r (char *, const char *, char **);
58 int strerror_r (int, char *, size_t);
59 char *stpcpy(char *, const char *);
60 char *stpncpy(char *, const char *, size_t);
61 size_t strnlen (const char *, size_t);
62 char *strdup (const char *);
63 char *strndup (const char *, size_t);
65 char *strerror_l (int, locale_t);
66 int strcoll_l (const char *, const char *, locale_t);
67 size_t strxfrm_l (char *, const char *, size_t, locale_t);
70 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
71 void *memccpy (void *, const void *, int, size_t);
75 size_t strlcat (char *, const char *, size_t);
76 size_t strlcpy (char *, const char *, size_t);
80 int strverscmp (const char *, const char *);
81 int strcasecmp (const char *, const char *);
82 int strncasecmp (const char *, const char *, size_t);
83 char *strchrnul(const char *, int);
84 char *strcasestr(const char *, const char *);
85 char *strsep(char **, const char *);
86 void *memrchr(const void *, int, size_t);
87 void *mempcpy(void *, const void *, size_t);