aboutsummaryrefslogtreecommitdiffstats
path: root/libs/libck/memmove.c
diff options
context:
space:
mode:
authorEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-05-05 01:08:00 -0400
committerEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-05-05 01:08:00 -0400
commit4aa74dbe2a35a45668b33d688f17b680c2232572 (patch)
tree42794e2fe2ba653ccbf772bb02dbfda07f75943e /libs/libck/memmove.c
parent2d59766eb330b9d15a9bcbcd7e1695809fc099c5 (diff)
improved makefile somewhat
Diffstat (limited to 'libs/libck/memmove.c')
-rw-r--r--libs/libck/memmove.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libs/libck/memmove.c b/libs/libck/memmove.c
deleted file mode 100644
index 98c787f..0000000
--- a/libs/libck/memmove.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <string.h>
-
-void* memmove(void* dstptr, const void* srcptr, size_t size) {
- unsigned char* dst = (unsigned char*) dstptr;
- const unsigned char* src = (const unsigned char*) srcptr;
- if (dst < src) {
- for (size_t i = 0; i < size; i++)
- dst[i] = src[i];
- } else {
- for (size_t i = size; i != 0; i--)
- dst[i-1] = src[i-1];
- }
- return dstptr;
-} \ No newline at end of file