]> git.saurik.com Git - apple/libc.git/blame - locale/querylocale.3
Libc-1439.40.11.tar.gz
[apple/libc.git] / locale / querylocale.3
CommitLineData
3d9156a7
A
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
12Returns the name of the locale for the category specified by
13.Va mask .
14The
15.Va mask
16is scanned starting at the least significant bit,
17until the first set bit is found. This happens
18to scan the categories alphabetically, not
19including
20.Dv LC_ALL_MASK ,
21but it is best to specify one category at a time.
22The available categories are documented in
23.Xr xlocale 3
24and
25.Xr newlocale 3 .
26.Sh SEE ALSO
3d9156a7
A
27.Xr duplocale 3 ,
28.Xr freelocale 3 ,
29.Xr newlocale 3 ,
224c7076
A
30.Xr uselocale 3 ,
31.Xr xlocale 3