implement uselocale function (minimal)
This commit is contained in:
parent
9a59faab3c
commit
11c531e21d
2 changed files with 12 additions and 0 deletions
10
src/locale/uselocale.c
Normal file
10
src/locale/uselocale.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue