2002-04-10 00:00:05 +04:00
|
|
|
.\" $NetBSD: nl_langinfo.3,v 1.8 2002/04/09 20:00:05 wiz Exp $
|
1994-07-16 09:12:26 +04:00
|
|
|
.\"
|
1995-04-29 03:19:22 +04:00
|
|
|
.\" Written by J.T. Conklin <jtc@netbsd.org>.
|
|
|
|
.\" Public domain.
|
1994-07-16 09:12:26 +04:00
|
|
|
.\"
|
|
|
|
.Dd July 14, 1994
|
|
|
|
.Dt NL_LANGINFO 3
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm nl_langinfo
|
|
|
|
.Nd get locale information
|
1998-02-05 21:45:17 +03:00
|
|
|
.Sh LIBRARY
|
|
|
|
.Lb libc
|
1994-07-16 09:12:26 +04:00
|
|
|
.Sh SYNOPSIS
|
2002-02-07 10:00:09 +03:00
|
|
|
.Fd #include \*[Lt]langinfo.h\*[Gt]
|
1994-07-16 09:12:26 +04:00
|
|
|
.Ft char *
|
1996-02-14 22:21:54 +03:00
|
|
|
.Fn nl_langinfo "nl_item item"
|
1994-07-16 09:12:26 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Fn nl_langinfo
|
2001-09-16 06:25:37 +04:00
|
|
|
function returns a pointer to a string containing information
|
1994-07-16 09:12:26 +04:00
|
|
|
set by the program's locale.
|
|
|
|
.Pp
|
|
|
|
The names and values of
|
|
|
|
.Fa item
|
2001-09-16 06:25:37 +04:00
|
|
|
are defined in
|
1994-07-16 09:12:26 +04:00
|
|
|
.Aq langinfo.h .
|
2001-09-16 06:25:37 +04:00
|
|
|
.Sh RETURN VALUES
|
1994-07-16 09:12:26 +04:00
|
|
|
.Fn nl_langinfo
|
|
|
|
returns a pointer to an empty string if
|
|
|
|
.Fa item
|
|
|
|
is invalid.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr setlocale 3
|
2002-04-10 00:00:05 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Fn nl_langinfo
|
|
|
|
function appeared in
|
|
|
|
.Nx 1.0 .
|