projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add fast path for normal mutexes back to pthread_mutex_lock
[oweals/musl.git]
/
src
/
locale
/
duplocale.c
1
#include <stdlib.h>
2
#include <string.h>
3
#include "locale_impl.h"
4
5
locale_t duplocale(locale_t old)
6
{
7
locale_t new;
8
new = calloc(1, sizeof *new);
9
if (new) memcpy(new, old, sizeof *new);
10
return new;
11
}