USELOCALE(3C) | Standard C Library Functions | USELOCALE(3C) |
#include <locale.h> locale_t uselocale(locale_t loc);
If (locale_t)0 is supplied for loc, then no change is made to the thread's locale setting. This can be used to query the thread's locale without making any change.
If LC_GLOBAL_LOCALE is supplied for loc, then the thread will use the global locale, undoing the effect of any prior call to establish a thread-specific locale.
Otherwise the thread will use the supplied loc locale object as a thread-specific locale. Changes to the global locale, or to the locale of any other thread, will not affect this thread.
Locale objects for use with uselocale() can be created with the functions duplocale(3C) and newlocale(3C).
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Standard |
MT-Level | MT-Safe |
June 24, 2014 | OmniOS |