49 #define __ATTR_PURE__ __attribute__((__pure__)) 52 #ifndef __ATTR_CONST__ 53 # define __ATTR_CONST__ __attribute__((__const__)) 90 #if defined(__DOXYGEN__) 98 + (((x) & 017) == 0) \ 99 + (((x) & 037) == 0) \ 100 + (((x) & 077) == 0) \ 101 + (((x) & 0177) == 0) \ 102 + (((x) & 0377) == 0) \ 103 + (((x) & 0777) == 0) \ 104 + (((x) & 01777) == 0) \ 105 + (((x) & 03777) == 0) \ 106 + (((x) & 07777) == 0) \ 107 + (((x) & 017777) == 0) \ 108 + (((x) & 037777) == 0) \ 109 + (((x) & 077777) == 0) \ 110 - (((x) & 0177777) == 0) * 16) 125 extern int ffs(
int __val) __ATTR_CONST__;
131 extern int ffsl(
long __val) __ATTR_CONST__;
137 __extension__
extern int ffsll(
long long __val) __ATTR_CONST__;
150 extern void *
memccpy(
void *,
const void *,
int,
size_t);
162 extern void *
memchr(
const void *,
int,
size_t) __ATTR_PURE__;
180 extern int memcmp(
const void *,
const void *,
size_t) __ATTR_PURE__;
191 extern void *
memcpy(
void *,
const void *,
size_t);
203 extern void *
memmem(
const void *,
size_t,
const void *,
size_t) __ATTR_PURE__;
213 extern void *
memmove(
void *,
const void *,
size_t);
225 extern void *
memrchr(
const void *,
int,
size_t) __ATTR_PURE__;
235 extern void *
memset(
void *,
int,
size_t);
248 extern char *
strcat(
char *,
const char *);
262 extern char *
strchr(
const char *,
int) __ATTR_PURE__;
274 extern char *
strchrnul(
const char *,
int) __ATTR_PURE__;
287 extern int strcmp(
const char *,
const char *) __ATTR_PURE__;
305 extern char *
strcpy(
char *,
const char *);
320 extern int strcasecmp(
const char *,
const char *) __ATTR_PURE__;
333 extern char *
strcasestr(
const char *,
const char *) __ATTR_PURE__;
344 extern size_t strcspn(
const char *__s,
const char *__reject) __ATTR_PURE__;
364 extern char *
strdup(
const char *s1);
377 extern size_t strlcat(
char *,
const char *,
size_t);
388 extern size_t strlcpy(
char *,
const char *,
size_t);
399 extern size_t strlen(
const char *) __ATTR_PURE__;
411 extern char *
strlwr(
char *);
422 extern char *
strncat(
char *,
const char *,
size_t);
434 extern int strncmp(
const char *,
const char *,
size_t) __ATTR_PURE__;
449 extern char *
strncpy(
char *,
const char *,
size_t);
464 extern int strncasecmp(
const char *,
const char *,
size_t) __ATTR_PURE__;
478 extern size_t strnlen(
const char *,
size_t) __ATTR_PURE__;
491 extern char *
strpbrk(
const char *__s,
const char *__accept) __ATTR_PURE__;
505 extern char *
strrchr(
const char *,
int) __ATTR_PURE__;
515 extern char *
strrev(
char *);
533 extern char *
strsep(
char **,
const char *);
544 extern size_t strspn(
const char *__s,
const char *__accept) __ATTR_PURE__;
557 extern char *
strstr(
const char *,
const char *) __ATTR_PURE__;
576 extern char *
strtok(
char *,
const char *);
593 extern char *
strtok_r(
char *,
const char *,
char **);
606 extern char *
strupr(
char *);
610 extern int strcoll(
const char *s1,
const char *s2);
611 extern char *strerror(
int errnum);
612 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:41
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:37
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.