aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include
diff options
context:
space:
mode:
authorKaimakan71 <undefined.foss@gmail.com>2024-04-21 04:13:59 -0400
committerIan Moffett <ian@osmora.org>2024-04-21 09:49:55 -0400
commitf42b520ffcb47176601d3537d5fc118321965201 (patch)
tree6eafe345f8183721853c5bad6e8bdad05bd5f723 /lib/libc/include
parent6f0d77ec8df53bd24745c566271a6f487872bbef (diff)
libc: Add more string functions
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/string.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libc/include/string.h b/lib/libc/include/string.h
index e0360ae..1b270c7 100644
--- a/lib/libc/include/string.h
+++ b/lib/libc/include/string.h
@@ -31,7 +31,17 @@
#define _STRING_H
#include <stddef.h>
+#include <stdint.h>
-size_t strlen(const char *s);
+void *memcpy(void *dest, const void *src, size_t n);
+void *memccpy(void *dest, const void *src, int c, size_t n);
+void *memmove(void *dest, const void *src, size_t n);
+void *memset(void *s, int c, size_t n);
+int memcmp(const void *s1, const void *s2, size_t n);
+void *memchr(const void *s, int c, size_t n);
+
+size_t strlen(const char *s);
+int strcmp(const char *s1, const char *s2);
+int strncmp(const char *s1, const char *s2, size_t n);
#endif /* !_STRING_H */