mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
190 B
11 lines
190 B
|
15 years ago
|
#include "locale_impl.h"
|
||
|
|
#include "pthread_impl.h"
|
||
|
|
|
||
|
|
locale_t uselocale(locale_t l)
|
||
|
|
{
|
||
|
|
pthread_t self = pthread_self();
|
||
|
|
locale_t old = self->locale;
|
||
|
|
if (l) self->locale = l;
|
||
|
|
return old;
|
||
|
|
}
|