From c5cc8713b8541cd39c4bf0de4b364ce3908d9548 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 30 Nov 2014 20:31:03 +0100 Subject: Conformity of memset/memcpy ; implement memmove/memcmp. --- kernel/include/string.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'kernel/include') diff --git a/kernel/include/string.h b/kernel/include/string.h index 1eb3eef..3cb0db3 100644 --- a/kernel/include/string.h +++ b/kernel/include/string.h @@ -3,8 +3,10 @@ #include #include -void *memcpy(void *dest, const void *src, int count); -void *memset(void *dest, int val, int count); +void *memcpy(void *dest, const void *src, size_t count); +void *memset(void *dest, int val, size_t count); +int memcmp(const void *s1, const void *s2, size_t n); +void *memmove(void *dest, const void *src, size_t count); size_t strlen(const char *str); char *strchr(const char *str, char c); -- cgit v1.2.3