xref: /netbsd/lib/libc/locale/nl_langinfo.3 (revision bf9ec67e)
1.\"	$NetBSD: nl_langinfo.3,v 1.8 2002/04/09 20:00:05 wiz Exp $
2.\"
3.\" Written by J.T. Conklin <jtc@netbsd.org>.
4.\" Public domain.
5.\"
6.Dd July 14, 1994
7.Dt NL_LANGINFO 3
8.Os
9.Sh NAME
10.Nm nl_langinfo
11.Nd get locale information
12.Sh LIBRARY
13.Lb libc
14.Sh SYNOPSIS
15.Fd #include \*[Lt]langinfo.h\*[Gt]
16.Ft char *
17.Fn nl_langinfo "nl_item item"
18.Sh DESCRIPTION
19The
20.Fn nl_langinfo
21function returns a pointer to a string containing information
22set by the program's locale.
23.Pp
24The names and values of
25.Fa item
26are defined in
27.Aq langinfo.h .
28.Sh RETURN VALUES
29.Fn nl_langinfo
30returns a pointer to an empty string if
31.Fa item
32is invalid.
33.Sh SEE ALSO
34.Xr setlocale 3
35.Sh HISTORY
36The
37.Fn nl_langinfo
38function appeared in
39.Nx 1.0 .
40