diff options
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h index a8edd63..5e06af7 100644 --- a/include/string.h +++ b/include/string.h @@ -2,7 +2,18 @@ #define _STRING_H #include <stddef.h> +#define NULL ((void*)0) -void *memset(void *s, int c, size_t n); +extern void *memcpy(void *__restrict, const void *__restrict, size_t); +void *memmove(void *, const void *, size_t); +void *memset(void *, int, size_t); +int memcmp(const void *, const void *, size_t); +void *memchr(const void *, int, size_t); +char *strchr(const char *, int); +char *strrchr(const char*, int); + +//size_t strlen(const char *); +#define strlen(s) __builtin_strlen(s) +#define strnlen(s, n) __builtin_strnlen(s, n) #endif /* _STRING_H */ |