summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-19 20:03:22 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-19 20:03:22 +0200
commit3e85a8e6db1a9c9a7fcf7974a1a0307b2cb145bd (patch)
tree16d611d9190bcf4939dd054909cb3a41a6d20fb7 /include
parent7aea21f2a30e0aa3bc75a579bd01ff9746470c05 (diff)
strops and memops refactor
Diffstat (limited to 'include')
-rw-r--r--include/memops.hpp1
-rw-r--r--include/strops.hpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/memops.hpp b/include/memops.hpp
index 9901d0c..178b966 100644
--- a/include/memops.hpp
+++ b/include/memops.hpp
@@ -25,5 +25,6 @@ namespace memops {
void unalloc(void *ptr);
void* copy(void* destination, const void* source, size_t num);
void zero(void* destination, size_t num);
+ bool equals(void* m1, void* m2, size_t size);
} \ No newline at end of file
diff --git a/include/strops.hpp b/include/strops.hpp
index 537e058..dd01b80 100644
--- a/include/strops.hpp
+++ b/include/strops.hpp
@@ -32,6 +32,9 @@ namespace strops {
/// @brief Check if `a` matches string `b`.
/// @return `true` when strings match, else `false`.
bool equals(const char* a, const char* b);
+
+ size_t length(const char* str);
+ bool empty(const char* str);
char* tokenize(char* a, const char* find);