]> git.saurik.com Git - apple/libc.git/blob - locale/uselocale.3
Libc-391.4.3.tar.gz
[apple/libc.git] / locale / uselocale.3
1 .Dd March 11, 2005
2 .Dt USELOCALE 3
3 .Os
4 .Sh NAME
5 .Nm uselocale
6 .Nd Set the per-thread locale
7 .Sh SYNOPSIS
8 .In xlocale.h
9 .Ft locale_t
10 .Fn uselocale "locale_t loc"
11 .Sh DESCRIPTION
12 Sets the per-thread locale to
13 .Va loc .
14 Specify
15 .Dv LC_GLOBAL_LOCALE
16 to turn off any per-thread locale.
17 Pass
18 .Dv NULL
19 to return the current value of the per-thread locale (or
20 .Dv LC_GLOBAL_LOCALE )
21 without changing the locale.
22 .Sh RETURN VALUES
23 Returns the previous locale, or
24 .Dv LC_GLOBAL_LOCALE
25 if no per-thread locale was in effect.
26 .Sh SEE ALSO
27 .Xr xlocale 3 ,
28 .Xr duplocale 3 ,
29 .Xr freelocale 3 ,
30 .Xr newlocale 3 ,
31 .Xr querylocale 3