mirror of
https://github.com/diegocr/libnix.git
synced 2026-03-19 15:28:09 +00:00
15 lines
378 B
C
15 lines
378 B
C
#include <libraries/locale.h>
|
|
#include <proto/locale.h>
|
|
#include <locale.h>
|
|
#include <string.h>
|
|
#include <strsup.h>
|
|
|
|
extern struct Locale *__localevec[];
|
|
|
|
size_t strxfrm(char *buffer,const char *s,size_t n)
|
|
{ if (!__localevec[LC_COLLATE-1])
|
|
{ strncpy(buffer,s,n); return strlen(s); }
|
|
else
|
|
return StrConvert(__localevec[LC_COLLATE-1],(char *)s,buffer,n,SC_COLLATE1);
|
|
}
|