summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-10-31 20:56:41 +0100
committerGitHub <noreply@github.com>2024-10-31 20:56:41 +0100
commit043ecc32ac3f4c4fba61f2f33ebade1286257b3a (patch)
tree41c840cfd093065a93e3641c088b4d8a8570a31b /dev
parentc2f0129991f083f889d69166a954c09a345ec754 (diff)
Delete dev/ZKAKit/src/CRuntimeLibrary.cc
This will be replaced by LibC.dylib
Diffstat (limited to 'dev')
-rw-r--r--dev/ZKAKit/src/CRuntimeLibrary.cc75
1 files changed, 0 insertions, 75 deletions
diff --git a/dev/ZKAKit/src/CRuntimeLibrary.cc b/dev/ZKAKit/src/CRuntimeLibrary.cc
deleted file mode 100644
index a61c640b..00000000
--- a/dev/ZKAKit/src/CRuntimeLibrary.cc
+++ /dev/null
@@ -1,75 +0,0 @@
-/* -------------------------------------------
-
- Copyright EL Mahrouss Logic.
-
-------------------------------------------- */
-
-#include <KernelKit/DebugOutput.h>
-
-#include <stdint.h>
-#include <stddef.h>
-
-using namespace Kernel;
-
-/// @brief memset definition in C++.
-/// @param dst destination pointer.
-/// @param byte value to fill in.
-/// @param len length of of src.
-EXTERN_C VoidPtr memset(void* dst, int byte, long long unsigned int len)
-{
- for (size_t i = 0UL; i < len; ++i)
- {
- ((int*)dst)[i] = byte;
- }
-
- return dst;
-}
-
-/// @brief memcpy definition in C++.
-/// @param dst destination pointer.
-/// @param src source pointer.
-/// @param len length of of src.
-EXTERN_C VoidPtr memcpy(void* dst, const void* src, long long unsigned int len)
-{
- for (size_t i = 0UL; i < len; ++i)
- {
- ((int*)dst)[i] = ((int*)src)[i];
- }
-
- return dst;
-}
-
-/// @brief strlen definition in C++.
-EXTERN_C size_t strlen(const char* whatToCheck)
-{
- if (!whatToCheck)
- return 0;
-
- SizeT len = 0;
-
- while (whatToCheck[len] != 0)
- {
- ++len;
- }
-
- return len;
-}
-
-/// @brief strcmp definition in C++.
-EXTERN_C int strcmp(const char* whatToCheck, const char* whatToCheckRight)
-{
- if (!whatToCheck || *whatToCheck == 0)
- return 0;
-
- SizeT len = 0;
-
- while (whatToCheck[len] == whatToCheckRight[len])
- {
- if (whatToCheck[len] == 0)
- return 0;
-
- ++len;
- }
-
- return len;
-}