48 #define __ATTR_PURE__ __attribute__((__pure__))
51 #ifndef __ATTR_CONST__
52 # define __ATTR_CONST__ __attribute__((__const__))
88 #if defined(__DOXYGEN__)
96 + (((x) & 017) == 0) \
97 + (((x) & 037) == 0) \
98 + (((x) & 077) == 0) \
99 + (((x) & 0177) == 0) \
100 + (((x) & 0377) == 0) \
101 + (((x) & 0777) == 0) \
102 + (((x) & 01777) == 0) \
103 + (((x) & 03777) == 0) \
104 + (((x) & 07777) == 0) \
105 + (((x) & 017777) == 0) \
106 + (((x) & 037777) == 0) \
107 + (((x) & 077777) == 0) \
108 - (((x) & 0177777) == 0) * 16)
111 extern int ffs (
int __val) __ATTR_CONST__;
112 extern int ffsl (
long __val) __ATTR_CONST__;
113 __extension__
extern int ffsll (
long long __val) __ATTR_CONST__;
114 extern void *
memccpy(
void *,
const void *,
int,
size_t);
115 extern void *
memchr(
const void *,
int,
size_t) __ATTR_PURE__;
116 extern
int memcmp(const
void *, const
void *,
size_t) __ATTR_PURE__;
117 extern
void *
memcpy(
void *, const
void *,
size_t);
118 extern
void *
memmem(const
void *,
size_t, const
void *,
size_t) __ATTR_PURE__;
119 extern
void *
memmove(
void *, const
void *,
size_t);
120 extern
void *
memrchr(const
void *,
int,
size_t) __ATTR_PURE__;
121 extern
void *
memset(
void *,
int,
size_t);
122 extern
char *
strcat(
char *, const
char *);
123 extern
char *
strchr(const
char *,
int) __ATTR_PURE__;
124 extern
char *
strchrnul(const
char *,
int) __ATTR_PURE__;
125 extern
int strcmp(const
char *, const
char *) __ATTR_PURE__;
126 extern
char *
strcpy(
char *, const
char *);
127 extern
int strcasecmp(const
char *, const
char *) __ATTR_PURE__;
128 extern
char *
strcasestr(const
char *, const
char *) __ATTR_PURE__;
129 extern
size_t strcspn(const
char *__s, const
char *__reject) __ATTR_PURE__;
130 extern
char *
strdup(const
char *s1);
131 extern
size_t strlcat(
char *, const
char *,
size_t);
132 extern
size_t strlcpy(
char *, const
char *,
size_t);
133 extern
size_t strlen(const
char *) __ATTR_PURE__;
134 extern
char *
strlwr(
char *);
135 extern
char *
strncat(
char *, const
char *,
size_t);
136 extern
int strncmp(const
char *, const
char *,
size_t) __ATTR_PURE__;
137 extern
char *
strncpy(
char *, const
char *,
size_t);
138 extern
int strncasecmp(const
char *, const
char *,
size_t) __ATTR_PURE__;
139 extern
size_t strnlen(const
char *,
size_t) __ATTR_PURE__;
140 extern
char *
strpbrk(const
char *__s, const
char *__accept) __ATTR_PURE__;
141 extern
char *
strrchr(const
char *,
int) __ATTR_PURE__;
142 extern
char *
strrev(
char *);
143 extern
char *
strsep(
char **, const
char *);
144 extern
size_t strspn(const
char *__s, const
char *__accept) __ATTR_PURE__;
145 extern
char *
strstr(const
char *, const
char *) __ATTR_PURE__;
146 extern
char *
strtok(
char *, const
char *);
147 extern
char *
strtok_r(
char *, const
char *,
char **);
148 extern
char *
strupr(
char *);
151 extern int strcoll(
const char *s1,
const char *s2);
152 extern char *strerror(
int errnum);
153 extern size_t strxfrm(
char *dest,
const char *src,
size_t n);
void * memmem(const void *, size_t, const void *, size_t) __ATTR_PURE__
void * memmove(void *, const void *, size_t)
Copy memory area.
char * strsep(char **, const char *)
Parse a string into tokens.
char * strstr(const char *, const char *) __ATTR_PURE__
Locate a substring.
char * strlwr(char *)
Convert a string to lower case.
void * memcpy(void *, const void *, size_t)
Copy a memory area.
size_t strnlen(const char *, size_t) __ATTR_PURE__
Determine the length of a fixed-size string.
char * strpbrk(const char *__s, const char *__accept) __ATTR_PURE__
int strncmp(const char *, const char *, size_t) __ATTR_PURE__
Compare two strings.
int strncasecmp(const char *, const char *, size_t) __ATTR_PURE__
Compare two strings ignoring case.
void * memset(void *, int, size_t)
Fill memory with a constant byte.
int strcasecmp(const char *, const char *) __ATTR_PURE__
Compare two strings ignoring case.
char * strncat(char *, const char *, size_t)
Concatenate two strings.
size_t strlcpy(char *, const char *, size_t)
Copy a string.
Definition: strlcpy.c:49
char * strtok(char *, const char *)
Parses the string s into tokens.
Definition: strtok.c:57
char * strchr(const char *, int) __ATTR_PURE__
Locate character in string.
int memcmp(const void *, const void *, size_t) __ATTR_PURE__
Compare memory areas.
void * memchr(const void *, int, size_t) __ATTR_PURE__
Scan memory for a character.
char * strchrnul(const char *, int) __ATTR_PURE__
size_t strlen(const char *) __ATTR_PURE__
Calculate the length of a string.
char * strrev(char *)
Reverse a string.
int ffs(int __val)
This function finds the first (least significant) bit set in the input value.
size_t strcspn(const char *__s, const char *__reject) __ATTR_PURE__
int ffsl(long __val)
Same as ffs(), for an argument of type long.
void * memccpy(void *, const void *, int, size_t)
Copy memory area.
char * strdup(const char *s1)
Duplicate a string.
Definition: strdup.c:57
char * strcasestr(const char *, const char *) __ATTR_PURE__
__extension__ int ffsll(long long __val)
Same as ffs(), for an argument of type long long.
int strcmp(const char *, const char *) __ATTR_PURE__
Compare two strings.
char * strupr(char *)
Convert a string to upper case.
void * memrchr(const void *, int, size_t) __ATTR_PURE__
char * strrchr(const char *, int) __ATTR_PURE__
Locate character in string.
char * strtok_r(char *, const char *, char **)
Parses string into tokens.
char * strcat(char *, const char *)
Concatenate two strings.
size_t strspn(const char *__s, const char *__accept) __ATTR_PURE__
char * strcpy(char *, const char *)
Copy a string.
size_t strlcat(char *, const char *, size_t)
Concatenate two strings.
Definition: strlcat.c:50
char * strncpy(char *, const char *, size_t)
Copy a string.