summaryrefslogtreecommitdiff
path: root/src/util.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-08 18:55:42 +0200
committerHampusM <hampus@hampusmat.com>2022-05-08 18:55:42 +0200
commit2809f92eeb8b727e20167fe82e4cb9c3627d4870 (patch)
tree06a01c862088333aa388e74dfa4381a87568bfc1 /src/util.hpp
parent3a11866cb6a8fd46d86cb6e04dc1022344ea8d45 (diff)
chore: move most files to minion folder
Diffstat (limited to 'src/util.hpp')
-rw-r--r--src/util.hpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/util.hpp b/src/util.hpp
deleted file mode 100644
index d6f7f1c..0000000
--- a/src/util.hpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#pragma once
-
-#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
-
-namespace util
-{
-
-template <typename Type>
-Type *malloc(size_t size) noexcept
-{
- return static_cast<Type *>(::malloc(size));
-}
-
-bool str_ends_with(const char *str, const char *other_str) noexcept;
-
-/**
- * Extracts a portion of a string.
- *
- * @param str The target string.
- * @param end A pointer to a place inside the target string.
- * @param dest Output buffer.
- */
-void substr(const char *str, const char *end, char *dest) noexcept;
-
-} // namespace util