Documentation Archive Developer
Search
ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



USELOCALE(3)             BSD Library Functions Manual             USELOCALE(3)

NAME
     uselocale -- Set the per-thread locale

SYNOPSIS
     #include <xlocale.h>

     locale_t
     uselocale(locale_t loc);

DESCRIPTION
     Sets 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 perthread
     thread locale (or LC_GLOBAL_LOCALE) without changing the locale.

RETURN VALUES
     Returns the previous locale, or LC_GLOBAL_LOCALE if no per-thread locale
     was in effect.

SEE ALSO
     duplocale(3), freelocale(3), newlocale(3), querylocale(3), xlocale(3)

BSD                             March 11, 2005                             BSD