summaryrefslogtreecommitdiff
path: root/src/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.h')
-rw-r--r--src/string.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/string.h b/src/string.h
index 0d2c8d4..d74a970 100644
--- a/src/string.h
+++ b/src/string.h
@@ -4,12 +4,32 @@
#include <stddef.h>
#include <stdint.h>
+#include <stdbool.h>
int memcmp(const void *s1, const void *s2, size_t n);
void *memcpy(void *dest, const void *src, size_t n);
void *memmove(void *dest, const void *src, size_t n);
void *memset(void *s, int c, size_t n);
size_t strlen(const char *s);
+char *strcpy(char *dest, const char *src);
+char *strncpy(char *dest, const char *src, size_t n);
+int strcmp(const char *s1, const char *s2);
+int strncmp(const char *s1, const char *s2, size_t n);
+char *strstr(const char *haystack, const char *needle);
+char *strchr(const char *s, int c);
+size_t strspn(const char *s, const char *accept);
+
char *hex(uint32_t n, char *buf);
+bool isupper(char c);
+bool islower(char c);
+bool isalpha(char c);
+bool isdigit(char c);
+bool isxdigit(char c);
+bool isalnum(char c);
+bool isspace(char c);
+
+char toupper(char c);
+char tolower(char c);
+
#endif