Query: uselocale
OS: mojave
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
USELOCALE(3) BSD Library Functions Manual USELOCALE(3)NAMEuselocale -- Set the per-thread localeSYNOPSIS#include <xlocale.h> locale_t uselocale(locale_t loc);DESCRIPTIONSets the per-thread locale to loc. Specify LC_GLOBAL_LOCALE to turn off any per-thread locale. Pass NULL to return the current value of the per-thread locale (or LC_GLOBAL_LOCALE) without changing the locale.RETURN VALUESReturns the previous locale, or LC_GLOBAL_LOCALE if no per-thread locale was in effect.SEE ALSOduplocale(3), freelocale(3), newlocale(3), querylocale(3), xlocale(3)BSDMarch 11, 2005 BSD