projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add legacy sys/ttydefaults.h header
[oweals/musl.git]
/
src
/
locale
/
newlocale.c
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
}