Query: nl_langinfo
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NL_LANGINFO(3) BSD Library Functions Manual NL_LANGINFO(3)NAMEnl_langinfo -- language informationLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <langinfo.h> char * nl_langinfo(nl_item item); char * nl_langinfo_l(nl_item item, locale_t loc);DESCRIPTIONThe nl_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. 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 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 con- tains an invalid setting.EXAMPLESFor 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 ALSOsetlocale(3)STANDARDSThe nl_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'').HISTORYThe nl_langinfo() function first appeared in FreeBSD 4.6.BSDJuly 30, 2012 BSD
Related Man Pages |
---|
nl_langinfo(3c) - opensolaris |
nl_langinfo(3) - mojave |
nl_langinfo_l(3) - mojave |
nl_langinfo(3p) - suse |
nl_langinfo(3) - x11r4 |
Similar Topics in the Unix Linux Community |
---|
Need help in building gcc on solaris. |
Trying to native compile Debian Dialog |
scandir() and threads |
How to zip file in AIX with password. |
Compiling problem - AIX 7.2 |