From 043ecc32ac3f4c4fba61f2f33ebade1286257b3a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> Date: Thu, 31 Oct 2024 20:56:41 +0100 Subject: Delete dev/ZKAKit/src/CRuntimeLibrary.cc This will be replaced by LibC.dylib --- dev/ZKAKit/src/CRuntimeLibrary.cc | 75 --------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 dev/ZKAKit/src/CRuntimeLibrary.cc (limited to 'dev') 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 - -#include -#include - -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; -} -- cgit v1.2.3