#ifndef STRING_H #define STRING_H #include /* TODO: change all applicable 'int32_t's with 'size_t's. */ size_t strlen(const char* str); size_t strcmp(const char *s1, const char *s2); int32_t strncmp(const char *s1, const char *s2, size_t n); size_t strcpy(char *dst, const char *src); char *strncpy(char *dest, const char *src, uint32_t n); void strcat(char *dest, const char *src); char* strdup(const char* s); char* strtok(char* str, const char* delim); char* strchr(const char* s, int c); int32_t ischar(int32_t c); int32_t isspace(char c); int32_t isalpha(char c); char upper(char c); char toupper(char c); char lower(char c); void *memset(void *dst, char c, uint32_t n); void *memcpy(void *dst, const void *src, uint32_t n); int32_t memcmp(uint8_t *s1, uint8_t *s2, uint32_t n); #endif