Print this page
Garrett's man page edits.

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/getwc.3c
          +++ new/usr/src/man/man3c/getwc.3c
↓ open down ↓ 9 lines elided ↑ open up ↑
  10   10  .TH GETWC 3C "Jul 24, 2002"
  11   11  .SH NAME
  12   12  getwc, getwc_l \- get wide character from a stream
  13   13  .SH SYNOPSIS
  14   14  .LP
  15   15  .nf
  16   16  #include <stdio.h>
  17   17  #include <wchar.h>
  18   18  
  19   19  \fBwint_t\fR \fBgetwc\fR(\fBFILE\fR \fI*stream\fR);
       20 +.fi
       21 +.LP
       22 +.nf
       23 +#include <stdio.h>
       24 +#include <wchar.h>
       25 +#include <xlocale.h>
  20   26  \fBwint_t\fR \fBgetwc_l\fR(\fBFILE\fR \fI*stream\fR, \fBlocale_t\fR \fIloc\fR);
  21   27  .fi
  22   28  
  23   29  .SH DESCRIPTION
  24   30  .sp
  25   31  .LP
  26   32  The \fBgetwc()\fR function is equivalent to \fBfgetwc\fR(3C), except that if it
  27   33  is implemented as a macro it may evaluate \fIstream\fR more than once, so the
  28      -argument should never be an expression with side effects. The
  29      -\fBgetwc_l\fR function is similar to \fBfgetwc\fR, except instead of
  30      -acting on the current locale as specified by \fBsetlocale\fR(3C) and
  31      -\fBuselocale\fR(3C), it uses the locale specified by \fIloc\fR.
       34 +argument should never be an expression with side effects.
       35 +.LP
       36 +The \fBgetwc_l()\fR function is similar to \fBgetwc()\fR, except instead of
       37 +acting on the current locale, it uses the locale specified by \fIloc\fR.
  32   38  .SH RETURN VALUES
  33      -.sp
  34   39  .LP
  35   40  Refer to \fBfgetwc\fR(3C).
  36   41  .SH ERRORS
  37      -.sp
  38   42  .LP
  39   43  Refer to \fBfgetwc\fR(3C).
  40   44  .SH USAGE
  41      -.sp
  42   45  .LP
  43   46  This interface is provided to align with some current implementations and with
  44   47  possible future \fBISO\fR standards.
  45      -.sp
  46   48  .LP
  47      -Because it may be implemented as a macro, \fBgetwc()\fR may treat incorrectly a
  48      -\fIstream\fR argument with side effects.  In particular,
  49      -\fBgetwc\fR(*\fIf\fR\|++) may not work as expected.  Therefore, use of this
  50      -function is not recommended; \fBfgetwc\fR(3C) should be used instead.
       49 +Because they may be implemented as macros, these functions may treat incorrectly
       50 +a \fIstream\fR argument with side effects.  In particular,
       51 +\fBgetwc\fR(*\fIf\fR\|++) may not work as expected.  Therefore, use of these
       52 +functions is not recommended; \fBfgetwc\fR(3C) and \fBfgetwc_l\fR(3C)
       53 +should be used instead.
  51   54  .SH ATTRIBUTES
  52      -.sp
  53   55  .LP
  54   56  See \fBattributes\fR(5) for descriptions of the following attributes:
  55      -.sp
  56      -
  57      -.sp
  58   57  .TS
  59   58  box;
  60   59  c | c
  61   60  l | l .
  62   61  ATTRIBUTE TYPE  ATTRIBUTE VALUE
  63   62  _
  64      -Interface Stability     Standard
       63 +Interface Stability     See below.
  65   64  _
  66   65  MT-Level        MT-Safe
  67   66  .TE
  68   67  
       68 +.LP
       69 +The
       70 +.B getwc()
       71 +function is Standard.  The
       72 +.B getwc_l()
       73 +function is Uncommitted.
  69   74  .SH SEE ALSO
  70      -.sp
  71   75  .LP
  72      -\fBfgetwc\fR(3C), \fBsetlocale\fR(3C), \fBuselocale\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
       76 +\fBfgetwc\fR(3C), \fBnewlocale\fR(3C), \fBsetlocale\fR(3C), \fBuselocale\fR(3C),
       77 +\fBattributes\fR(5), \fBstandards\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX