]> git.saurik.com Git - apple/libc.git/blob - locale/querylocale.3
Libc-594.9.5.tar.gz
[apple/libc.git] / locale / querylocale.3
1 .Dd March 11, 2005
2 .Dt QUERYLOCALE 3
3 .Os
4 .Sh NAME
5 .Nm querylocale
6 .Nd Get locale name for a specified category
7 .Sh SYNOPSIS
8 .In xlocale.h
9 .Ft const char *
10 .Fn querylocale "int mask" "locale_t loc"
11 .Sh DESCRIPTION
12 Returns the name of the locale for the category specified by
13 .Va mask .
14 The
15 .Va mask
16 is scanned starting at the least significant bit,
17 until the first set bit is found. This happens
18 to scan the categories alphabetically, not
19 including
20 .Dv LC_ALL_MASK ,
21 but it is best to specify one category at a time.
22 The available categories are documented in
23 .Xr xlocale 3
24 and
25 .Xr newlocale 3 .
26 .Sh SEE ALSO
27 .Xr duplocale 3 ,
28 .Xr freelocale 3 ,
29 .Xr newlocale 3 ,
30 .Xr uselocale 3 ,
31 .Xr xlocale 3