diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2014-11-30 20:31:03 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2014-11-30 20:31:03 +0100 |
commit | c5cc8713b8541cd39c4bf0de4b364ce3908d9548 (patch) | |
tree | 255657380da939325853e7ed750f0a842343df5c /kernel/include | |
parent | a375561ca15a99dd7024e5b8170a3c8fcf25b892 (diff) | |
download | kogata-c5cc8713b8541cd39c4bf0de4b364ce3908d9548.tar.gz kogata-c5cc8713b8541cd39c4bf0de4b364ce3908d9548.zip |
Conformity of memset/memcpy ; implement memmove/memcmp.
Diffstat (limited to 'kernel/include')
-rw-r--r-- | kernel/include/string.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 <stddef.h> #include <stdint.h> -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); |