123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- #ifndef _STRINGS_H
- #define _STRINGS_H 1
- #if !defined _STRING_H || !defined __USE_MISC
- # include <features.h>
- # define __need_size_t
- # include <stddef.h>
- # if defined __cplusplus && __GNUC_PREREQ (4, 4)
- # define __CORRECT_ISO_CPP_STRINGS_H_PROTO
- # endif
- __BEGIN_DECLS
- # if defined __USE_MISC || !defined __USE_XOPEN2K8
- extern int bcmp (const void *__s1, const void *__s2, size_t __n)
- __THROW __attribute_pure__;
- extern void bcopy (const void *__src, void *__dest, size_t __n) __THROW;
- extern void bzero (void *__s, size_t __n) __THROW;
- # ifdef __CORRECT_ISO_CPP_STRINGS_H_PROTO
- extern "C++"
- {
- extern char *index (char *__s, int __c)
- __THROW __asm ("index") __attribute_pure__ __nonnull ((1));
- extern const char *index (const char *__s, int __c)
- __THROW __asm ("index") __attribute_pure__ __nonnull ((1));
- # if defined __OPTIMIZE__ && !defined __CORRECT_ISO_CPP_STRING_H_PROTO
- __extern_always_inline char *
- index (char *__s, int __c) __THROW
- {
- return __builtin_index (__s, __c);
- }
- __extern_always_inline const char *
- index (const char *__s, int __c) __THROW
- {
- return __builtin_index (__s, __c);
- }
- # endif
- }
- # else
- extern char *index (const char *__s, int __c)
- __THROW __attribute_pure__ __nonnull ((1));
- # endif
- # ifdef __CORRECT_ISO_CPP_STRINGS_H_PROTO
- extern "C++"
- {
- extern char *rindex (char *__s, int __c)
- __THROW __asm ("rindex") __attribute_pure__ __nonnull ((1));
- extern const char *rindex (const char *__s, int __c)
- __THROW __asm ("rindex") __attribute_pure__ __nonnull ((1));
- # if defined __OPTIMIZE__ && !defined __CORRECT_ISO_CPP_STRING_H_PROTO
- __extern_always_inline char *
- rindex (char *__s, int __c) __THROW
- {
- return __builtin_rindex (__s, __c);
- }
- __extern_always_inline const char *
- rindex (const char *__s, int __c) __THROW
- {
- return __builtin_rindex (__s, __c);
- }
- # endif
- }
- # else
- extern char *rindex (const char *__s, int __c)
- __THROW __attribute_pure__ __nonnull ((1));
- # endif
- # endif
- #if defined __USE_MISC || !defined __USE_XOPEN2K8 || defined __USE_XOPEN2K8XSI
- extern int ffs (int __i) __THROW __attribute__ ((const));
- #endif
- extern int strcasecmp (const char *__s1, const char *__s2)
- __THROW __attribute_pure__;
- extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
- __THROW __attribute_pure__;
- #ifdef __USE_XOPEN2K8
- # include <xlocale.h>
- extern int strcasecmp_l (const char *__s1, const char *__s2, __locale_t __loc)
- __THROW __attribute_pure__ __nonnull ((1, 2, 3));
- extern int strncasecmp_l (const char *__s1, const char *__s2,
- size_t __n, __locale_t __loc)
- __THROW __attribute_pure__ __nonnull ((1, 2, 4));
- #endif
- __END_DECLS
- #endif
- #endif
|