1 #include <string.h> 2 #include <locale.h> 3 #include "locale_impl.h" 4 __strcoll_l(const char * l,const char * r,locale_t loc)5int __strcoll_l(const char *l, const char *r, locale_t loc) 6 { 7 return strcmp(l, r); 8 } 9 strcoll(const char * l,const char * r)10int strcoll(const char *l, const char *r) 11 { 12 #ifdef __LITEOS_A__ 13 return strcmp(l, r); 14 #else 15 return __strcoll_l(l, r, CURRENT_LOCALE); 16 #endif 17 } 18 19 weak_alias(__strcoll_l, strcoll_l); 20