LibC: Implement dummy strcoll()

This commit is contained in:
Bananymous 2024-07-31 23:58:10 +03:00
parent adf50dffd8
commit c440204fa5
1 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,12 @@ char* strncat(char* __restrict__ dest, const char* __restrict__ src, size_t n)
return dest; return dest;
} }
int strcoll(const char* s1, const char* s2)
{
// FIXME: support locales
return strcmp(s1, s2);
}
char* strdup(const char* str) char* strdup(const char* str)
{ {
const size_t size = strlen(str) + 1; const size_t size = strlen(str) + 1;