diff options
Diffstat (limited to 'src/kernel/lib/memory.c')
-rw-r--r-- | src/kernel/lib/memory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/lib/memory.c b/src/kernel/lib/memory.c index 6ec4ed9..a030c9a 100644 --- a/src/kernel/lib/memory.c +++ b/src/kernel/lib/memory.c @@ -1,19 +1,19 @@ #include <stddef.h> -void *memory_copy(void *dest, const void *src, size_t count) { +void *memcpy(void *dest, const void *src, size_t count) { const char *sp = (const char *) src; char *dp = (char *) dest; for (; count != 0; count--) *dp++ = *sp++; return dest; } -void *memory_set(void *dest, char val, size_t count) { +void *memset(void *dest, char val, size_t count) { char *temp = (char *) dest; for (; count != 0; count--) *temp++ = val; return dest; } -int memory_compare(const void *a_ptr, const void *b_ptr, size_t size) { +int memcmp(const void *a_ptr, const void *b_ptr, size_t size) { const unsigned char *a = (const unsigned char *) a_ptr; const unsigned char *b = (const unsigned char *) b_ptr; for (size_t i = 0; i < size; i++) { |