aboutsummaryrefslogtreecommitdiffstats
path: root/libc/memcmp.c
diff options
context:
space:
mode:
authorEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-07-18 22:25:44 -0400
committerEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-09-03 14:07:04 -0400
commit8eda325ede02d3fc606a34f7fa3c4922b05a84e4 (patch)
tree881da3ba217871a002e6e79bdfc90149cc589e1d /libc/memcmp.c
parent82bcab74e6e0c581dcf4ac4d7997aec5c5e14aae (diff)
Remerged the std stuff into the kernel
Diffstat (limited to 'libc/memcmp.c')
-rw-r--r--libc/memcmp.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libc/memcmp.c b/libc/memcmp.c
deleted file mode 100644
index 93141e1..0000000
--- a/libc/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