implement uselocale function (minimal)
[musl] / src / locale / uselocale.c
1 #include "locale_impl.h"
2 #include "pthread_impl.h"
3
4 locale_t uselocale(locale_t l)
5 {
6         pthread_t self = pthread_self();
7         locale_t old = self->locale;
8         if (l) self->locale = l;
9         return old;
10 }