1 #include <stdlib.h> 2 #include <string.h> 3 #include "locale_impl.h" 4 #include "libc.h" 5 newlocale(int mask,const char * name,locale_t base)6locale_t newlocale(int mask, const char *name, locale_t base) 7 { 8 if (*name && strcmp(name, "C") && strcmp(name, "POSIX")) 9 return 0; 10 if (!base) base = calloc(1, sizeof *base); 11 return base; 12 } 13 14 weak_alias(newlocale, __newlocale); 15