1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Added strcoll(3).

This commit is contained in:
Jonas 'Sortie' Termansen 2012-01-14 16:44:48 +01:00
parent 56084556bb
commit a06902baf6
2 changed files with 7 additions and 1 deletions

View file

@ -40,6 +40,7 @@ void* memset(void*, int, size_t);
char* strcat(char* restrict, const char* restrict);
char* strchr(const char*, int);
int strcmp(const char*, const char*);
int strcoll(const char*, const char*);
size_t strcspn(const char*, const char*);
char* strcpy(char* restrict, const char* restrict);
char* strerror(int);
@ -56,7 +57,6 @@ void* memccpy(void* restrict, const void* restrict, int, size_t);
void* memmove(void*, const void*, size_t);
char* stpcpy(char* restrict, const char* restrict);
char* stpncpy(char* restrict, const char* restrict, size_t);
int strcoll(const char*, const char*);
int strcoll_l(const char*, const char*, locale_t);
char* strdup(const char*);
char* strerror_l(int, locale_t);

View file

@ -211,6 +211,12 @@ namespace Maxsi
return (negative) ? -result : result;
}
extern "C" int strcoll(const char* s1, const char* s2)
{
// TODO: Pay attention to locales.
return Compare(s1, s2);
}
#if 0
char* Combine(size_t NumParameters, ...)
{