"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">     <html
xmlns="http://www.w3.org/1999/xhtml"> <head>
    <link            rel="stylesheet"             type="text/css"
href="../../../style.css" title="style" />
    <link  rel="stylesheet"  type="text/css"  href="../style.css"
title="style" />
    <meta             http‐equiv="content‐type"              con‐
tent="text/html;charset=utf‐8" />

    <title>langinfo.h.0p ‐ Linux manual page</title> </head>


<div        class="page‐top"><a       id="top_of_page"></a></div>
<!‐‐%%%TOP_BAR%%%‐‐> <!‐‐%%%PAGE_START%%%‐‐>

<table class="sec‐table"> <tr>
        <p class="section‐dir"> <a href="#PROLOG">PROLOG</a> | <a
href="#NAME">NAME</a>  |  <a  href="#SYNOPSIS">SYNOPSIS</a>  | <a
NALE</a>   |   <a    href="#FUTURE_DIRECTIONS">FUTURE&nbsp;DIREC‐
TIONS</a>    |   <a   href="#SEE_ALSO">SEE&nbsp;ALSO</a>   |   <a
    <td class="search‐box">
        <div class="man‐search‐box">

            <form                method="get"                 ac‐
                <fieldset class="man‐search">
                    <input    type="text"    name="q"   size="10"
maxlength="255" value="" />
                    <input type="hidden"  name="sitesearch"  val‐
ue="man7.org/linux/man‐pages" />
                    <input  type="submit" name="sa" value="Search
online pages" />

    <td> </td> </tr> </table>

<pre> <span class="headline">langinfo.h(0P)            POSIX Pro‐
grammer’s  Manual            langinfo.h(0P)</span>  </pre> <h2><a
id="PROLOG" href="#PROLOG"></a>PROLOG  &nbsp; &nbsp; &nbsp;  &nb‐
sp;        <a        href="#top_of_page"><span        class="top‐
       This manual page is part of the POSIX Programmer’s Manual.
The Linux
       implementation of this interface may differ (consult the
       corresponding  Linux  manual page for details of Linux be‐
havior), or
       the interface may not be  implemented  on  Linux.   </pre>
<h2><a id="NAME" href="#NAME"></a>NAME  &nbsp; &nbsp; &nbsp; &nb‐
sp;        <a        href="#top_of_page"><span        class="top‐
       langinfo.h  — language information constants </pre> <h2><a
id="SYNOPSIS" href="#SYNOPSIS"></a>SYNOPSIS  &nbsp; &nbsp; &nbsp;
&nbsp;       <a       href="#top_of_page"><span       class="top‐
       #include &lt;langinfo.h&gt; </pre> <h2><a id="DESCRIPTION"
href="#DESCRIPTION"></a>DESCRIPTION   &nbsp; &nbsp; &nbsp; &nbsp;
<a             href="#top_of_page"><span              class="top‐
       The <i>&lt;langinfo.h&gt;</i> header shall define the sym‐
bolic constants used to
       identify items of <i>langinfo</i> data (see  <i>nl_langin‐

       The  <i>&lt;langinfo.h&gt;</i>  header  shall  define  the
<b>locale_t </b>type as described
       in <i>&lt;locale.h&gt;</i>.

       The  <i>&lt;langinfo.h&gt;</i>  header  shall  define  the
<b>nl_item </b>type as described in

       The <i>&lt;langinfo.h&gt;</i> header shall define the fol‐
lowing symbolic constants
       with type <b>nl_item</b>.  The entries  under  <b>Category
</b>indicate in which
       <i>setlocale</i>() category each item is defined.

│       <b>Constant        </b>│        <b>Category         </b>│
<b>Meaning                                                  </b>│
│CODESET           │<i>LC_CTYPE</i>          │Codeset       name.
│ │D_T_FMT    │<i>LC_TIME</i>    │String for formatting date  and
time.                          │    │D_FMT        │<i>LC_TIME</i>
│Date  format  string.                                          │
│T_FMT          │<i>LC_TIME</i>        │Time    format    string.
│  │T_FMT_AMPM  │<i>LC_TIME</i>     │a.m.  or  p.m.  time  format
string.                            │  │AM_STR     │<i>LC_TIME</i>
│Ante‐meridiem   affix.                                         │
│PM_STR          │<i>LC_TIME</i>        │Post‐meridiem     affix.
│ │DAY_1      │<i>LC_TIME</i>    │Name of the first  day  of  the
week  (for  example,  Sunday).    │  │DAY_2       │<i>LC_TIME</i>
│Name of the second day of the week  (for  example,  Monday).   │
│DAY_3      │<i>LC_TIME</i>    │Name of the third day of the week
(for example, Tuesday).  │ │DAY_4       │<i>LC_TIME</i>     │Name
of  the  fourth  day  of  the  week                          │  │
│                    │(for          example,          Wednesday).
│  │DAY_5       │<i>LC_TIME</i>     │Name of the fifth day of the
week  (for  example,  Thursday).  │  │DAY_6       │<i>LC_TIME</i>
│Name  of  the  sixth  day of the week (for example, Friday).   │
│DAY_7      │<i>LC_TIME</i>    │Name of the seventh  day  of  the
week                        │ │           │           │(for exam‐
ple,  Saturday).                                     │   │ABDAY_1
│<i>LC_TIME</i>     │Abbreviated  name  of  the  first day of the
week.             │ │ABDAY_2     │<i>LC_TIME</i>     │Abbreviated
name  of  the  second  day  of  the  week.             │ │ABDAY_3
│<i>LC_TIME</i>    │Abbreviated name of  the  third  day  of  the
week.              │  │ABDAY_4    │<i>LC_TIME</i>    │Abbreviated
name of  the  fourth  day  of  the  week.             │  │ABDAY_5
│<i>LC_TIME</i>     │Abbreviated  name  of  the  fifth day of the
week.             │ │ABDAY_6     │<i>LC_TIME</i>     │Abbreviated
name  of  the  sixth  day  of  the  week.              │ │ABDAY_7
│<i>LC_TIME</i>    │Abbreviated name of the seventh  day  of  the
week.            │  │MON_1       │<i>LC_TIME</i>     │Name of the
first  month  of   the   year.                         │   │MON_2
│<i>LC_TIME</i>        │Name     of     the     second     month.
│  │MON_3       │<i>LC_TIME</i>     │Name  of  the  third  month.
│  │MON_4       │<i>LC_TIME</i>     │Name  of  the  fourth month.
│  │MON_5       │<i>LC_TIME</i>     │Name  of  the  fifth  month.
│  │MON_6       │<i>LC_TIME</i>     │Name  of  the  sixth  month.
│ │MON_7      │<i>LC_TIME</i>     │Name  of  the  seventh  month.
│  │MON_8       │<i>LC_TIME</i>     │Name  of  the  eighth month.
│  │MON_9       │<i>LC_TIME</i>     │Name  of  the  ninth  month.
│  │MON_10      │<i>LC_TIME</i>     │Name  of  the  tenth  month.
│ │MON_11     │<i>LC_TIME</i>    │Name  of  the  eleventh  month.
│  │MON_12      │<i>LC_TIME</i>     │Name  of  the twelfth month.
│ │ABMON_1    │<i>LC_TIME</i>    │Abbreviated name of  the  first
month.                          │   │ABMON_2      │<i>LC_TIME</i>
│Abbreviated name of  the  second  month.                       │
│ABMON_3     │<i>LC_TIME</i>     │Abbreviated  name  of the third
month.                         │   │ABMON_4       │<i>LC_TIME</i>
│Abbreviated  name  of  the  fourth month.                      │
│ABMON_5    │<i>LC_TIME</i>    │Abbreviated  name  of  the  fifth
month.                          │   │ABMON_6      │<i>LC_TIME</i>
│Abbreviated name of  the  sixth  month.                        │
│ABMON_7     │<i>LC_TIME</i>     │Abbreviated name of the seventh
month.                     │ │ABMON_8    │<i>LC_TIME</i>     │Ab‐
breviated  name  of the eighth month.                      │ │AB‐
MON_9    │<i>LC_TIME</i>    │Abbreviated name of the ninth month.
│  │ABMON_10    │<i>LC_TIME</i>    │Abbreviated name of the tenth
month.                         │   │ABMON_11      │<i>LC_TIME</i>
│Abbreviated  name  of  the  eleventh month.                    │
│ABMON_12   │<i>LC_TIME</i>    │Abbreviated name of  the  twelfth
month.                      │ │ERA        │<i>LC_TIME</i>    │Era
description     segments.                                       │
│ERA_D_FMT    │<i>LC_TIME</i>      │Era   date   format   string.
│  │ERA_D_T_FMT│<i>LC_TIME</i>     │Era  date  and  time   format
string.                            │  │ERA_T_FMT  │<i>LC_TIME</i>
│Era  time  format  string.                                     │
│ALT_DIGITS  │<i>LC_TIME</i>     │Alternative symbols for digits.
│    │RADIXCHAR      │<i>LC_NUMERIC</i>     │Radix     character.
│   │THOUSEP      │<i>LC_NUMERIC</i>  │Separator  for  thousands.
│ │YESEXPR     │<i>LC_MESSAGES</i>│Affirmative  response  expres‐
sion.                              │    │NOEXPR       │<i>LC_MES‐
SAGES</i>│Negative              response              expression.
│ │CRNCYSTR   │<i>LC_MONETARY</i>│Local currency symbol, preceded
by   <b>’−’   </b>if   the   symbol         │    │              │
│should  appear before the value, <b>’+’ </b>if the symbol should
│ │           │           │appear  after  the  value,  or  <b>’.’
</b>if the symbol should       │ │           │           │replace
the  radix  character.  If  the  local  currency  symbol    │   │
│            │is the empty string, implementations may return the
empty    │   │             │              │string    (<b>""</b>).
       If   the  locale’s  values  for  <b>p_cs_precedes  </b>and
<b>n_cs_precedes </b>do not
       match, the value of <i>nl_langinfo</i>(CRNCYSTR) and
       <i>nl_langinfo_l</i>(CRNCYSTR,loc) is unspecified.

       The following shall be declared as a function and may also
be defined
       as a macro. A function prototype shall be provided.

           <b>char *nl_langinfo(nl_item);</b>
           <b>char *nl_langinfo_l(nl_item, locale_t);</b>

       Inclusion of the <i>&lt;langinfo.h&gt;</i> header may also
make visible all
       symbols from <i>&lt;nl_types.h&gt;</i>.

       <i>The  following  sections  are  informative.</i>  </pre>
PLICATION    USAGE     &nbsp;    &nbsp;    &nbsp;    &nbsp;    <a
href="#top_of_page"><span                             class="top‐
       Wherever possible, users are advised to use functions com‐
patible with
       those  in the ISO C standard to access items of <i>langin‐
fo</i> data. In
       particular, the <i>strftime</i>() function should be  used
to access date and
       time  information defined in category <i>LC_TIME</i>.  The
       function should be used to access information  correspond‐
ing to
       RADIXCHAR,  THOUSEP,  and CRNCYSTR.  </pre> <h2><a id="RA‐
TIONALE" href="#RATIONALE"></a>RATIONALE   &nbsp;  &nbsp;  &nbsp;
&nbsp;       <a       href="#top_of_page"><span       class="top‐
       None.   </pre>  <h2><a  id="FUTURE_DIRECTIONS"  href="#FU‐
TURE_DIRECTIONS"></a>FUTURE DIRECTIONS  &nbsp; &nbsp; &nbsp; &nb‐
sp;        <a        href="#top_of_page"><span        class="top‐
       None.     </pre>   <h2><a   id="SEE_ALSO"   href="#SEE_AL‐
SO"></a>SEE   ALSO     &nbsp;    &nbsp;    &nbsp;    &nbsp;    <a
href="#top_of_page"><span                             class="top‐
       <i>Chapter  7</i>,  <i>Locale</i>,  <a   href="../man0/lo‐
cale.h.0p.html">locale.h(0p)</a>,                              <a

       The  System  Interfaces   volume   of   POSIX.1‐2008,   <a
       <a   href="../man3/localeconv.3p.html">localeconv(3p)</a>,
<a       href="../man3/strfmon.3p.html">strfmon(3p)</a>,       <a
href="../man3/strftime.3p.html">strftime(3p)</a>   </pre>  <h2><a
id="COPYRIGHT"  href="#COPYRIGHT"></a>COPYRIGHT   &nbsp;   &nbsp;
&nbsp;    &nbsp;    <a    href="#top_of_page"><span   class="top‐
       Portions of this text  are  reprinted  and  reproduced  in
electronic form
       from  IEEE Std 1003.1, 2013 Edition, Standard for Informa‐
       Technology ‐‐ Portable Operating System Interface (POSIX),
The Open
       Group  Base  Specifications Issue 7, Copyright (C) 2013 by
       Institute of Electrical and Electronics Engineers, Inc and
The Open
       Group.  (This is POSIX.1‐2008 with the 2013 Technical Cor‐
rigendum 1
       applied.) In the event of  any  discrepancy  between  this
version and
       the  original IEEE and The Open Group Standard, the origi‐
nal IEEE and
       The Open Group Standard is the referee document. The orig‐
       Standard     can     be     obtained    online    at    <a
line.html</a> .

       Any typographical or formatting errors that appear in this
page are
       most likely to have been introduced during the  conversion
of the
       source  files  to  man page format. To report such errors,
       <a      href="https://www.kernel.org/doc/man‐pages/report‐
ing_bugs.html</a> .

<span class="footline">IEEE/The Open  Group                  2013
langinfo.h(0P)</span> </pre>

<hr class="end‐man‐text" />

<hr class="start‐footer" />

<div class="footer">

<table class="colophon‐table">
    <td class="pub‐info">
            HTML rendering created 2019‐08‐02
            by  <a  href="http://man7.org/mtk/index.html">Michael
            author of
            <a  href="http://man7.org/tlpi/"><em>The  Linux  Pro‐
gramming Interface</em></a>,
            maintainer of the
            <a href="https://www.kernel.org/doc/man‐pages/">Linux
<em>man‐pages</em> project</a>.
            For details of in‐depth
            <strong>Linux/UNIX system programming training  cour‐
            that  I  teach,  look <a href="http://man7.org/train‐
            Hosting   by    <a    href="http://www.jambit.com/in‐
dex_en.html">jambit GmbH</a>.
            <a href="http://validator.w3.org/check?uri=referer">
            <img src="http://www.w3.org/Icons/valid‐xhtml11"
                alt="Valid XHTML 1.1" height="31" width="88" />
    <td class="colophon‐divider">
    <td class="tlpi‐cover">
        <a                      href="http://man7.org/tlpi/"><img
alt="Cover of TLPI" /></a>
    </tr> </table>


<hr class="end‐footer" />

</body> </html>