cstring
Go to the documentation of this file.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
00035
00036
00037
00038
00039
00040
00041 #pragma GCC system_header
00042
00043 #include <bits/c++config.h>
00044 #include <cstddef>
00045 #include <string.h>
00046
00047 #ifndef _GLIBCXX_CSTRING
00048 #define _GLIBCXX_CSTRING 1
00049
00050
00051 #undef memchr
00052 #undef memcmp
00053 #undef memcpy
00054 #undef memmove
00055 #undef memset
00056 #undef strcat
00057 #undef strchr
00058 #undef strcmp
00059 #undef strcoll
00060 #undef strcpy
00061 #undef strcspn
00062 #undef strerror
00063 #undef strlen
00064 #undef strncat
00065 #undef strncmp
00066 #undef strncpy
00067 #undef strpbrk
00068 #undef strrchr
00069 #undef strspn
00070 #undef strstr
00071 #undef strtok
00072 #undef strxfrm
00073
00074 _GLIBCXX_BEGIN_NAMESPACE(std)
00075
00076 using ::memchr;
00077 using ::memcmp;
00078 using ::memcpy;
00079 using ::memmove;
00080 using ::memset;
00081 using ::strcat;
00082 using ::strcmp;
00083 using ::strcoll;
00084 using ::strcpy;
00085 using ::strcspn;
00086 using ::strerror;
00087 using ::strlen;
00088 using ::strncat;
00089 using ::strncmp;
00090 using ::strncpy;
00091 using ::strspn;
00092 using ::strtok;
00093 using ::strxfrm;
00094 using ::strchr;
00095 using ::strpbrk;
00096 using ::strrchr;
00097 using ::strstr;
00098
00099 #ifndef __CORRECT_ISO_CPP_STRING_H_PROTO
00100 inline void*
00101 memchr(void* __p, int __c, size_t __n)
00102 { return memchr(const_cast<const void*>(__p), __c, __n); }
00103
00104 inline char*
00105 strchr(char* __s1, int __n)
00106 { return __builtin_strchr(const_cast<const char*>(__s1), __n); }
00107
00108 inline char*
00109 strpbrk(char* __s1, const char* __s2)
00110 { return __builtin_strpbrk(const_cast<const char*>(__s1), __s2); }
00111
00112 inline char*
00113 strrchr(char* __s1, int __n)
00114 { return __builtin_strrchr(const_cast<const char*>(__s1), __n); }
00115
00116 inline char*
00117 strstr(char* __s1, const char* __s2)
00118 { return __builtin_strstr(const_cast<const char*>(__s1), __s2); }
00119 #endif
00120
00121 _GLIBCXX_END_NAMESPACE
00122
00123 #endif