[SDK:CRT] Implement more string routines

This commit is contained in:
2024-08-08 16:41:45 -04:00
parent 120277161c
commit b57dcc8078
4 changed files with 176 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ extern "C" {
size_t strlen(const char *str);
size_t strnlen(const char *str, size_t maxlen);
int strcmp(const char* s1, const char* s2);
int strncmp(const char* s1, const char* s2, size_t n);
char *strchr(const char *s, int c);
char *strstr(const char *haystack, const char *needle);
void *memset(void *dest, int c, size_t count);
void *memcpy(void *dest, const void *src, size_t count);

View File

@@ -26,6 +26,10 @@ extern "C" {
size_t wcslen(const wchar_t *str);
size_t wcsnlen(const wchar_t *str, size_t maxlen);
int wcscmp(const wchar_t* s1, const wchar_t* s2);
int wcsncmp(const wchar_t* s1, const wchar_t* s2, size_t n);
wchar_t *wcschr(const wchar_t *wcs, wchar_t wc);
wchar_t *wcsstr(const wchar_t *haystack, const wchar_t *needle);
wchar_t *wmemset(wchar_t *dest, wchar_t c, size_t count);
wchar_t *wmemcpy(wchar_t *dest, const wchar_t *src, size_t count);