MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Headers                                         langinfo.h(3HEAD)



NAME
     langinfo.h, langinfo - language information constants

SYNOPSIS
     #include 


DESCRIPTION
     The  header contains the constants used to iden-
     tify  items of langinfo data (see nllanginfo(3C)). The type
     of  the  constant,  nlitem,  is  defined  as  described  in
     .


     The following  constants  are  defined.  The  entries  under
     Category  indicate in which setlocale(3C) category each item
     is defined.



        Constant         Category                      Meaning
     
     CODESET          LCTYPE         codeset name
     
     DTFMT          LCTIME          string for formatting date and time
     
     DFMT            LCTIME          date format string
     
     TFMT            LCTIME          time format string
     
     TFMTAMPM       LCTIME          a.m. or p.m. time format string
     
     AMSTR           LCTIME          ante-meridiem affix
     
     PMSTR           LCTIME          post-meridiem affix
     
     DAY1            LCTIME          name of the first day of the week  (for
                                       example, Sunday)
     
     DAY2            LCTIME          name of the second day of the week (for
                                       example, Monday)
     
     DAY3            LCTIME          name of the third day of the week  (for
                                       example, Tuesday)
     
     DAY4            LCTIME          name of the fourth day of the week (for
                                       example, Wednesday)
     
     DAY5            LCTIME          name of the fifth day of the week  (for
                                       example, Thursday)
     




SunOS 5.11          Last change: 30 Aug 2002                    1






Headers                                         langinfo.h(3HEAD)



     DAY6            LCTIME          name of the sixth day of the week  (for
                                       example, Friday)
     
     DAY7            LCTIME          name of the seventh  day  of  the  week
                                       (for example, Saturday)
     
     ABDAY1          LCTIME          abbreviated name of the  first  day  of
                                       the week
     
     ABDAY2          LCTIME          abbreviated name of the second  day  of
                                       the week
     
     ABDAY3          LCTIME          abbreviated name of the  third  day  of
                                       the week
     
     ABDAY4          LCTIME          abbreviated name of the fourth  day  of
                                       the week
     
     ABDAY5          LCTIME          abbreviated name of the  fifth  day  of
                                       the week
     
     ABDAY6          LCTIME          abbreviated name of the seventh day  of
                                       the week
     
     ABDAY7          LCTIME          abbreviated name of the seventh day  of
                                       the week
     
     MON1            LCTIME          name of the first month of the year
     
     MON2            LCTIME          name of the second month
     
     MON3            LCTIME          name of the third month
     
     MON4            LCTIME          name of the fourth month
     
     MON5            LCTIME          name of the fifth month
     
     MON6            LCTIME          name of the sixth month
     
     MON7            LCTIME          name of the seventh month
     
     MON8            LCTIME          name of the eighth month
     
     MON9            LCTIME          name of the ninth month
     
     MON10           LCTIME          name of the tenth month
     
     MON11           LCTIME          name of the eleventh month
     
     MON12           LCTIME          name of the twelfth month
     
     ABMON1          LCTIME          abbreviated name of the first month



SunOS 5.11          Last change: 30 Aug 2002                    2






Headers                                         langinfo.h(3HEAD)



     
     ABMON2          LCTIME          abbreviated name of the second month
     
     ABMON3          LCTIME          abbreviated name of the third month
     
     ABMON4          LCTIME          abbreviated name of the fourth month
     
     ABMON5          LCTIME          abbreviated name of the fifth month
     
     ABMON6          LCTIME          abbreviated name of the sixth month
     
     ABMON7          LCTIME          abbreviated name of the seventh month
     
     ABMON8          LCTIME          abbreviated name of the eighth month
     
     ABMON9          LCTIME          abbreviated name of the ninth month
     
     ABMON10         LCTIME          abbreviated name of the tenth month
     
     ABMON11         LCTIME          abbreviated name of the eleventh month
     
     ABMON12         LCTIME        abbreviated name of the twelfth month
     
     ERA             LCTIME         era description segments
     
     ERADFMT       LCTIME         era date format string
     
     ERADTFMT     LCTIME         era date and time format string
     
     ERATFMT       LCTIME         era time format string
     
     ALTDIGITS      LCTIME         alternative symbols for digits
     
     RADIXCHAR       LCNUMERIC      radix character
     
     THOUSEP         LCNUMERIC      separator for thousands
     
     YESEXPR         LCMESAGES     affirmative response expression
     
     NOEXPR          LCMESAGES     negative response expression
     
     YESTR          LCMESAGES     affirmative response for yes/no queries
     
     NOSTR           LCMESAGES     negative response ro yes/no queries
     
     CRNCYSTR        LCMONETARY     local currency symbol, preceded by  '-'
                                     if  the  symbol sould appear before the
                                     value, ']' if the symbol should  appear
                                     after  the  value, or '.' if the symbol
                                     should replace the radix character





SunOS 5.11          Last change: 30 Aug 2002                    3






Headers                                         langinfo.h(3HEAD)



     If the locale's values for pcsprecedes  and  ncsprecedes
     do not match, the value of nllanginfo(CRNCYSTR) is unspeci-
     fied.


     The  header declares the following  as  a  func-
     tion:

       char *nllanginfo(nlitem);



     Inclusion of  header may also make  visible  all
     symbols from .

USAGE
     Wherever possible, users are advised to use functions compa-
     tible  with  those  in the ISO C standard to access items of
     langinfo data.  In  particular,  the  strftime(3C)  function
     should  be  used to access date and time information defined
     in category LCTIME. The localeconv(3C) function  should  be
     used  to  access  information  corresponding  to  RADIXCHAR,
     THOUSEP, and CRNCYSTR.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Standard                    
    


SEE ALSO
     mkmsgs(1),         localeconv(3C),          nllanginfo(3C),
     nltypes.h(3HEAD),   setlocale(3C),   strftime(3C),   attri-
     butes(5), standards(5)














SunOS 5.11          Last change: 30 Aug 2002                    4



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™