projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add __sigsetjmp ABI-compat alias for sigsetjmp
[oweals/musl.git]
/
src
/
locale
/
newlocale.c
1
#include <stdlib.h>
2
#include <string.h>
3
#include "locale_impl.h"
4
#include "libc.h"
5
6
locale_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);