mirror of
https://github.com/diegocr/libnix.git
synced 2026-09-12 03:30:29 +00:00
16 lines
377 B
C
16 lines
377 B
C
#include <libraries/locale.h>
|
|
#include <proto/locale.h>
|
|
#include <limits.h>
|
|
#include <locale.h>
|
|
#include <string.h>
|
|
#include <strsup.h>
|
|
|
|
extern struct Locale *__localevec[];
|
|
|
|
int strcoll(const char *s1,const char *s2)
|
|
{ if (!__localevec[LC_COLLATE-1])
|
|
return strcmp(s1,s2);
|
|
else
|
|
return StrnCmp(__localevec[LC_COLLATE-1],(char *)s1,(char *)s2,LONG_MAX,SC_COLLATE1);
|
|
}
|