2011-02-12 05:22:29 +00:00
|
|
|
#ifndef _STRINGS_H
|
|
|
|
#define _STRINGS_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define __NEED_size_t
|
2012-02-07 02:51:02 +00:00
|
|
|
#define __NEED_locale_t
|
2011-02-12 05:22:29 +00:00
|
|
|
#include <bits/alltypes.h>
|
|
|
|
|
2013-02-26 06:30:36 +00:00
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \
|
|
|
|
|| (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \
|
|
|
|
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
|
2011-02-12 05:22:29 +00:00
|
|
|
int bcmp (const void *, const void *, size_t);
|
|
|
|
void bcopy (const void *, void *, size_t);
|
|
|
|
void bzero (void *, size_t);
|
|
|
|
char *index (const char *, int);
|
|
|
|
char *rindex (const char *, int);
|
2013-02-26 06:30:36 +00:00
|
|
|
#endif
|
|
|
|
|
2014-07-31 06:33:17 +00:00
|
|
|
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
2013-02-26 06:30:36 +00:00
|
|
|
int ffs (int);
|
2014-07-31 06:33:17 +00:00
|
|
|
#endif
|
2011-02-12 05:22:29 +00:00
|
|
|
|
|
|
|
int strcasecmp (const char *, const char *);
|
|
|
|
int strncasecmp (const char *, const char *, size_t);
|
|
|
|
|
2012-02-07 02:51:02 +00:00
|
|
|
int strcasecmp_l (const char *, const char *, locale_t);
|
|
|
|
int strncasecmp_l (const char *, const char *, size_t, locale_t);
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|