Home | History | Annotate | Download | only in musl-locale
      1 #include <stdlib.h>
      2 #include <string.h>
      3 #include "locale_impl.h"
      4 
      5 locale_t newlocale(int mask, const char *name, locale_t base)
      6 {
      7 	if (*name && strcmp(name, "C") && strcmp(name, "POSIX"))
      8 		return 0;
      9 	if (!base) base = calloc(1, sizeof *base);
     10 	return base;
     11 }
     12