From eff82c45c589b42061344039d5f2efc8ad7c52df Mon Sep 17 00:00:00 2001 From: stefan Date: Fri, 21 Apr 2023 19:53:04 -0400 Subject: libfdt port and the required libc functions --- include/string.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'include/string.h') 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 +#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 */ -- cgit v1.2.3