nl_langinfo man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

NL_LANGINFO(3)		 BSD Library Functions Manual		NL_LANGINFO(3)

NAME
     nl_langinfo — language information

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <langinfo.h>

     char *
     nl_langinfo(nl_item item);

DESCRIPTION
     The nl_langinfo() function returns a pointer to a string containing
     information relevant to the particular language or cultural area defined
     in the program's locale.  The manifest constant names and values of item
     are defined in <langinfo.h>.

     Calls to setlocale() with a category corresponding to the category of
     item, or to the category LC_ALL, may overwrite the buffer pointed to by
     the return value.

RETURN VALUES
     In a locale where langinfo data is not defined, nl_langinfo() returns a
     pointer to the corresponding string in the POSIX locale.  In all locales,
     nl_langinfo() returns a pointer to an empty string if item contains an
     invalid setting.

EXAMPLES
     For example:

	   nl_langinfo(ABDAY_1)

     would return a pointer to the string "Dom" if the identified language was
     Portuguese, and "Sun" if the identified language was English.

SEE ALSO
     setlocale(3)

STANDARDS
     The nl_langinfo() function conforms to Version 2 of the Single UNIX
     Specification (“SUSv2”).

HISTORY
     The nl_langinfo() function first appeared in FreeBSD 4.6.

BSD				  May 3, 2001				   BSD
[top]

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net