Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #ifndef _STRINGS_H |
| 2 | #define _STRINGS_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 8 | |
| 9 | #define __NEED_size_t |
Rich Felker | 36bf569 | 2012-02-06 21:51:02 -0500 | [diff] [blame] | 10 | #define __NEED_locale_t |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 11 | #include <bits/alltypes.h> |
| 12 | |
| 13 | |
| 14 | int bcmp (const void *, const void *, size_t); |
| 15 | void bcopy (const void *, void *, size_t); |
| 16 | void bzero (void *, size_t); |
| 17 | |
| 18 | int ffs (int); |
| 19 | |
| 20 | char *index (const char *, int); |
| 21 | char *rindex (const char *, int); |
| 22 | |
| 23 | int strcasecmp (const char *, const char *); |
| 24 | int strncasecmp (const char *, const char *, size_t); |
| 25 | |
Rich Felker | 36bf569 | 2012-02-06 21:51:02 -0500 | [diff] [blame] | 26 | int strcasecmp_l (const char *, const char *, locale_t); |
| 27 | int strncasecmp_l (const char *, const char *, size_t, locale_t); |
| 28 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 29 | #ifdef __cplusplus |
| 30 | } |
| 31 | #endif |
| 32 | |
| 33 | #endif |