Files
Espresso/include/string.h

34 lines
930 B
C
Raw Normal View History

2025-05-28 14:41:02 -05:00
#ifndef STRING_H
#define STRING_H
#include <types.h>
2025-06-27 14:48:06 -05:00
/* TODO: change all applicable `int32_t`s with `size_t`s. */
2025-05-28 14:41:02 -05:00
size_t strlen(const char* str);
2025-06-27 14:48:06 -05:00
int32_t strcmp(const char *s1, const char *s2);
2025-05-28 14:41:02 -05:00
int32_t strncmp(const char *s1, const char *s2, size_t n);
2025-06-27 14:48:06 -05:00
int32_t strcasecmp(const char* s1, const char* s2);
char* strcpy(char *dst, const char *src);
char* strncpy(char *dest, const char *src, uint32_t n);
char* strcat(char *dest, const char *src);
2025-06-17 15:50:07 -05:00
char* strdup(const char* s);
char* strtok(char* str, const char* delim);
char* strchr(const char* s, int c);
2025-05-28 14:41:02 -05:00
int32_t ischar(int32_t c);
int32_t isspace(char c);
int32_t isalpha(char c);
char upper(char c);
2025-06-27 14:48:06 -05:00
char lower(char c);
2025-05-28 14:41:02 -05:00
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);
2025-06-27 14:48:06 -05:00
int32_t memcmp(const void *s1, const void *s2, size_t n);
void* memclr(void* m_start, size_t m_count);
2025-05-28 14:41:02 -05:00
#endif