Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / sdk / include / c++ / cstring
diff --git a/sdk/include/c++/cstring b/sdk/include/c++/cstring
new file mode 100644 (file)
index 0000000..cff37eb
--- /dev/null
@@ -0,0 +1,60 @@
+// Standard C string declarations for C++\r
+\r
+//\r
+// ISO C++ 14882: 20.4.6  C library\r
+//\r
+\r
+#pragma once\r
+\r
+#include <cstddef>\r
+#include <string.h>\r
+\r
+// Get rid of those macros defined in <string.h> in lieu of real functions.\r
+#undef memchr\r
+#undef memcmp\r
+#undef memcpy\r
+#undef memmove\r
+#undef memset\r
+#undef strcat\r
+#undef strchr\r
+#undef strcmp\r
+#undef strcoll\r
+#undef strcpy\r
+#undef strcspn\r
+#undef strerror\r
+#undef strlen\r
+#undef strncat\r
+#undef strncmp\r
+#undef strncpy\r
+#undef strpbrk\r
+#undef strrchr\r
+#undef strspn\r
+#undef strstr\r
+#undef strtok\r
+#undef strxfrm\r
+\r
+namespace std\r
+{\r
+  using ::memchr;\r
+  using ::memcmp;\r
+  using ::memcpy;\r
+  using ::memmove;\r
+  using ::memset;\r
+  using ::strcat;\r
+  using ::strcmp;\r
+  using ::strcoll;\r
+  using ::strcpy;\r
+  using ::strcspn;\r
+  using ::strerror;\r
+  using ::strlen;\r
+  using ::strncat;\r
+  using ::strncmp;\r
+  using ::strncpy;\r
+  using ::strspn;\r
+  using ::strtok;\r
+  using ::strxfrm;\r
+  using ::strchr;\r
+  using ::strpbrk;\r
+  using ::strrchr;\r
+  using ::strstr;\r
+}\r