diff options
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h index fb20869..c939cd0 100644 --- a/include/string.h +++ b/include/string.h @@ -9,12 +9,20 @@ char *strcpy(char *dest, const char *src); int strcmp(const char *a, const char *b); char *strchr(const char *s, int c); char *strstr(const char *s1, const char *s2); -void *memset(void *s, int c, size_t n); -void *memcpy(void *dest, const void *src, size_t n); int memcmp(const void *s1, const void *s2, size_t n); void *memmove(void *dest, const void *src, size_t n); void *memchr(const void *s, int c, size_t n); +static inline void *memset(void *s, int c, size_t n) +{ + return __builtin_memset(s, c, n); +} + +static inline void *memcpy(void *dest, const void *src, size_t n) +{ + return __builtin_memcpy(dest, src, n); +} + void *malloc(int n); void *malloc_fseg(int n); |