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