summaryrefslogtreecommitdiff
path: root/libraries/euler/include/cstring
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/euler/include/cstring')
-rw-r--r--libraries/euler/include/cstring14
1 files changed, 14 insertions, 0 deletions
diff --git a/libraries/euler/include/cstring b/libraries/euler/include/cstring
new file mode 100644
index 0000000..65d00dc
--- /dev/null
+++ b/libraries/euler/include/cstring
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <cstddef>
+
+namespace std {
+
+ static inline size_t strlen(const char *str) {
+ size_t i = 0;
+ while (str[i])
+ ++i;
+ return i;
+ }
+
+}