| 1 |
#ifndef _STRINGS_H |
| 2 |
#define _STRINGS_H |
| 3 |
|
| 4 |
#ifdef __cplusplus |
| 5 |
extern "C" { |
| 6 |
#endif |
| 7 |
|
| 8 |
#include <features.h> |
| 9 |
|
| 10 |
#define __NEED_size_t |
| 11 |
#define __NEED_locale_t |
| 12 |
#include <bits/alltypes.h> |
| 13 |
|
| 14 |
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \ |
| 15 |
|| (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \ |
| 16 |
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) |
| 17 |
int bcmp (const void *, const void *, size_t); |
| 18 |
void bcopy (const void *, void *, size_t); |
| 19 |
void bzero (void *, size_t); |
| 20 |
char *index (const char *, int); |
| 21 |
char *rindex (const char *, int); |
| 22 |
#endif |
| 23 |
|
| 24 |
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 25 |
int ffs (int); |
| 26 |
int ffsl (long); |
| 27 |
int ffsll (long long); |
| 28 |
#endif |
| 29 |
|
| 30 |
int strcasecmp (const char *, const char *); |
| 31 |
int strncasecmp (const char *, const char *, size_t); |
| 32 |
|
| 33 |
int strcasecmp_l (const char *, const char *, locale_t); |
| 34 |
int strncasecmp_l (const char *, const char *, size_t, locale_t); |
| 35 |
|
| 36 |
#ifdef __cplusplus |
| 37 |
} |
| 38 |
#endif |
| 39 |
|
| 40 |
#endif |