From 7199e74aa22e592a3b77bdd81f735edca5470596 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 20 Jan 2024 17:59:40 -0500 Subject: update --- libraries/euler/include/cstring | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libraries/euler/include/cstring (limited to 'libraries/euler/include/cstring') 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 + +namespace std { + + static inline size_t strlen(const char *str) { + size_t i = 0; + while (str[i]) + ++i; + return i; + } + +} -- cgit v1.2.3