OpenBSD-4.6/lib/libc/locale/nl_langinfo.3

Compare this file to the similar file:
Show the results in this format:

.\"	$OpenBSD: nl_langinfo.3,v 1.7 2007/05/31 19:19:29 jmc Exp $
.\"
.\" Written by J.T. Conklin <jtc@netbsd.org>.
.\" Public domain.
.\"
.Dd $Mdocdate: May 31 2007 $
.Dt NL_LANGINFO 3
.Os
.Sh NAME
.Nm nl_langinfo
.Nd get locale information
.Sh SYNOPSIS
.Fd #include <nl_types.h>
.Fd #include <langinfo.h>
.Ft char *
.Fn nl_langinfo "nl_item item"
.Sh DESCRIPTION
The
.Fn nl_langinfo
function returns a pointer to a string containing information
set by the program's locale.
.Pp
The names and values of
.Fa item
are defined in
.Aq Pa langinfo.h .
.Sh RETURN VALUES
.Fn nl_langinfo
returns a pointer to an empty string if
.Fa item
is invalid.
.Sh SEE ALSO
.Xr setlocale 3