aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/std/memcmp.c
diff options
context:
space:
mode:
authorEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-01-07 03:19:28 -0500
committerEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-01-07 03:19:28 -0500
commitbb59107bd06a6a252b3743f17e55e3c17896db35 (patch)
treecb8ad8bbd25fe7d5db6cf734c33f4777843876b9 /kernel/std/memcmp.c
parentb7b97d32cbb6fbc928078ebe3a00714cbbebea86 (diff)
moved kernel libc stuff to libs/libck/
Diffstat (limited to 'kernel/std/memcmp.c')
-rw-r--r--kernel/std/memcmp.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/std/memcmp.c b/kernel/std/memcmp.c
deleted file mode 100644
index 93141e1..0000000
--- a/kernel/std/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