locale_t uselocale(locale_t loc);
uselocale installs a thread-local locale as returned from newlocale or duplocale and returns the previous thread-local locale. If loc is NULL then the thread-local locale is unchanged.