


NL_LANGINFO(3C)      COMPATIBILITY FUNCTIONS      NL_LANGINFO(3C)



NAME
     nl_langinfo - language information

SYNOPSIS
     #include <nl_types.h>
     #include <langinfo.h>

     char *nl_langinfo(item)
     nl_item item;

DESCRIPTION
     nl_langinfo() returns a pointer to a null-terminated  string
     containing  information relevant to a particular language or
     cultural area defined in the program's locale.  The manifest
     constant   names   and   values   of  _i_t_e_m  are  defined  in
     <langinfo.h> . 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.

RETURN VALUES
     In  a  locale  where   _l_a_n_g_i_n_f_o   data   is   not   defined,
     nl_langinfo()  returns a pointer to the corresponding string
     in the "C" locale. In all locales  nl_langinfo()  returns  a
     pointer  to an empty string if _i_t_e_m contains an invalid set-
     ting.

SEE ALSO
     setlocale(3V), environ(5V)























Sun Release 4.1   Last change: 22 January 1990                  1



