Print this page
4176 tolower(3c) refers to nonexistent _tolower(3c)
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Josef Sipek <jeffpc@josefsipek.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/toupper.3c
          +++ new/usr/src/man/man3c/toupper.3c
   1    1  '\" te
   2    2  .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
   3    3  .\"  Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved
   4    4  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5    5  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6    6  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7      -.TH TOUPPER 3C "Jun 21, 2014"
        7 +.TH TOUPPER 3C "Oct 4, 2015"
   8    8  .SH NAME
   9    9  toupper, toupper_l \- transliterate lower-case characters to upper-case
  10   10  .SH SYNOPSIS
  11   11  .LP
  12   12  .nf
  13   13  #include <ctype.h>
  14   14  
  15   15  \fBint\fR \fBtoupper\fR(\fBint\fR \fIc\fR);
  16   16  .fi
  17   17  .LP
  18   18  .nf
  19   19  \fBint\fR \fBtoupper_l\fR(\fBint\fR \fIc\fR, \fBlocale_t\fR \fIloc\fR);
  20   20  .fi
  21   21  
  22   22  .SH DESCRIPTION
  23   23  .LP
  24      -The \fBtoupper()\fR function has as a domain a type \fBint\fR, the value of
       24 +The \fBtoupper()\fR function has as a domain of type \fBint\fR, the value of
  25   25  which is representable as an \fBunsigned char\fR or the value of \fBEOF\fR. If
  26   26  the argument has any other value, the argument is returned unchanged. If the
  27   27  argument of \fBtoupper()\fR represents a lower-case letter, and there exists a
  28   28  corresponding upper-case letter (as defined by character type information in
  29   29  the locale category \fBLC_CTYPE\fR),   the result is the corresponding
  30   30  upper-case letter. All other arguments in the domain are returned unchanged.
  31   31  .LP
  32   32  The function \fBtoupper_l()\fR behaves identically to \fBtoupper()\fR, except
  33   33  instead of operating in the current locale, it operates in the locale
  34   34  specified by \fIloc\fR.
       35 +.LP
       36 +A macro form, \fB_toupper()\fR exists. It is defined for standards
       37 +conformance, particularly with legacy standards. It was deprecated in
       38 +POSIX 2008 (Issue 7), and its use is discouraged. The macro, on this
       39 +system, is just an alias for \fBtoupper()\fR.
  35   40  .SH RETURN VALUES
  36   41  .LP
  37   42  On successful completion, \fBtoupper()\fR returns the upper-case letter
  38   43  corresponding to the argument passed.
  39   44  .SH ERRORS
  40   45  .LP
  41   46  No errors are defined.
  42   47  .SH ATTRIBUTES
  43   48  .LP
  44   49  See \fBattributes\fR(5) for descriptions of the following attributes:
↓ open down ↓ 5 lines elided ↑ open up ↑
  50   55  _
  51   56  CSI     Enabled
  52   57  _
  53   58  Interface Stability     Standard
  54   59  _
  55   60  MT-Level        MT-Safe
  56   61  .TE
  57   62  
  58   63  .SH SEE ALSO
  59   64  .LP
  60      -\fB_toupper\fR(3C), \fBnewlocale\fR(3C), \fBsetlocale\fR(3C),
       65 +\fBnewlocale\fR(3C), \fBsetlocale\fR(3C),
  61   66  \fBuselocale\fR(3C),
  62   67  \fBattributes\fR(5), \fBstandards\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX