|
NAMEnl_langinfo —
language information
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <langinfo.h>
char *
char *
DESCRIPTIONThenl_langinfo () function returns a pointer to a string
containing information relevant to the particular language or cultural area
defined in the program or thread's locale, or in the case of
nl_langinfo_l (), the locale passed as the second
argument.
Calls to The manifest constant names and values of
item are defined in
The following standard constants are recognized:
The following non-standard FreeBSD extensions are recognized:
RETURN VALUESIn a locale where langinfo data is not defined,nl_langinfo () returns a pointer to the corresponding
string in the POSIX locale. nl_langinfo_l () returns
the same values as nl_langinfo (). In all locales,
nl_langinfo () returns a pointer to an empty string if
item contains an invalid setting.
EXAMPLESFor example:nl_langinfo(ABDAY_1) would return a pointer to the string
“ SEE ALSOsetlocale(3)STANDARDSThenl_langinfo () function conforms to
Version 2 of the Single UNIX Specification
(“SUSv2”). The nl_langinfo_l ()
function conforms to IEEE Std 1003.1-2008
(“POSIX.1”).
HISTORYThenl_langinfo () function first appeared in
FreeBSD 4.6.
Visit the GSP FreeBSD Man Page Interface. |