From edb7fc07bf93e4a1883cccf45ad7a4b2cbf390d9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 28 Aug 2022 23:54:47 +0200 Subject: user/lua: prepare libc headers --- src/user/lib/include/string.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/user/lib/include/string.h') diff --git a/src/user/lib/include/string.h b/src/user/lib/include/string.h index 7235da9..cf621d5 100644 --- a/src/user/lib/include/string.h +++ b/src/user/lib/include/string.h @@ -2,12 +2,21 @@ #include long strtol(const char *restrict s, char **restrict end, int base); +double strtod(const char *restrict s, char **restrict end); char *strchr(const char *s, int c); size_t strspn(const char *s, const char *accept); size_t strcspn(const char *s, const char *reject); +char *strpbrk(const char *s1, const char *s2); char *strtok(char *restrict s, const char *restrict sep); char *strtok_r(char *restrict s, const char *restrict sep, char **restrict state); int strncmp(const char *s1, const char *s2, size_t n); +int strcoll(const char *s1, const char *s2); + +char *strstr(const char *s1, const char *s2); + +char *strcpy(char *restrict s1, const char *restrict s2); + +char *strerror(int errnum); -- cgit v1.2.3