00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00045 #ifndef _GLIBCXX_CSTRING
00046 #define _GLIBCXX_CSTRING 1
00047
00048 #pragma GCC system_header
00049
00050 #include <cstddef>
00051
00052 #include <string.h>
00053
00054
00055 #undef memcpy
00056 #undef memmove
00057 #undef strcpy
00058 #undef strncpy
00059 #undef strcat
00060 #undef strncat
00061 #undef memcmp
00062 #undef strcmp
00063 #undef strcoll
00064 #undef strncmp
00065 #undef strxfrm
00066 #undef memchr
00067 #undef strchr
00068 #undef strcspn
00069 #undef strpbrk
00070 #undef strrchr
00071 #undef strspn
00072 #undef strstr
00073 #undef strtok
00074 #undef memset
00075 #undef strerror
00076 #undef strlen
00077
00078 namespace std
00079 {
00080 using ::memcpy;
00081 using ::memmove;
00082 using ::strcpy;
00083 using ::strncpy;
00084 using ::strcat;
00085 using ::strncat;
00086 using ::memcmp;
00087 using ::strcmp;
00088 using ::strcoll;
00089 using ::strncmp;
00090 using ::strxfrm;
00091 using ::strcspn;
00092 using ::strspn;
00093 using ::strtok;
00094 using ::memset;
00095 using ::strerror;
00096 using ::strlen;
00097
00098 using ::memchr;
00099
00100 inline void*
00101 memchr(void* __p, int __c, size_t __n)
00102 { return memchr(const_cast<const void*>(__p), __c, __n); }
00103
00104 using ::strchr;
00105
00106 inline char*
00107 strchr(char* __s1, int __n)
00108 { return __builtin_strchr(const_cast<const char*>(__s1), __n); }
00109
00110 using ::strpbrk;
00111
00112 inline char*
00113 strpbrk(char* __s1, const char* __s2)
00114 { return __builtin_strpbrk(const_cast<const char*>(__s1), __s2); }
00115
00116 using ::strrchr;
00117
00118 inline char*
00119 strrchr(char* __s1, int __n)
00120 { return __builtin_strrchr(const_cast<const char*>(__s1), __n); }
00121
00122 using ::strstr;
00123
00124 inline char*
00125 strstr(char* __s1, const char* __s2)
00126 { return __builtin_strstr(const_cast<const char*>(__s1), __s2); }
00127 }
00128
00129 #endif