aboutsummaryrefslogtreecommitdiffstats
path: root/libs/libck/memcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libck/memcmp.c')
-rw-r--r--libs/libck/memcmp.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libs/libck/memcmp.c b/libs/libck/memcmp.c
deleted file mode 100644
index 93141e1..0000000
--- a/libs/libck/memcmp.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <string.h>
-
-int memcmp(const void* aptr, const void* bptr, size_t size) {
- const unsigned char* a = (const unsigned char*) aptr;
- const unsigned char* b = (const unsigned char*) bptr;
- for (size_t i = 0; i < size; i++) {
- if (a[i] < b[i])
- return -1;
- else if (b[i] < a[i])
- return 1;
- }
- return 0;
-} \ No newline at end of file