1 '\" te
   2 .\"  Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved
   3 .\" 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.
   4 .\" 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.
   5 .\" 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]
   6 .TH TOUPPER 3C "Aug 14, 2002"
   7 .SH NAME
   8 toupper, toupper_l \- transliterate lower-case characters to upper-case
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 #include <ctype.h>
  13 
  14 \fBint\fR \fBtoupper\fR(\fBint\fR \fIc\fR);
  15 \fBint\fR \fBtoupper_l\fR(\fBint\fR \fIc\fR, \fBlocale_t\fR \fIloc\fR);
  16 .fi
  17 
  18 .SH DESCRIPTION
  19 .sp
  20 .LP
  21 The \fBtoupper()\fR function has as a domain a type \fBint\fR, the value of
  22 which is representable as an \fBunsigned char\fR or the value of \fBEOF\fR. If
  23 the argument has any other value, the argument is returned unchanged. If the
  24 argument of \fBtoupper()\fR represents a lower-case letter, and there exists a
  25 corresponding upper-case letter (as defined by character type information in
  26 the program locale category \fBLC_CTYPE\fR),   the result is the corresponding
  27 upper-case letter. All other arguments in the domain are returned unchanged.
  28 .sp
  29 .LP
  30 The function \fBtoupper_l()\fR behaves identically to \fBtoupper\fR, except
  31 instead of operating in the current environemtn, it operates in the environment
  32 specified by \fIloc\fR.
  33 .SH RETURN VALUES
  34 .sp
  35 .LP
  36 On successful completion, \fBtoupper()\fR returns the upper-case letter
  37 corresponding to the argument passed.
  38 .SH ERRORS
  39 .sp
  40 .LP
  41 No errors are defined.
  42 .SH ATTRIBUTES
  43 .sp
  44 .LP
  45 See \fBattributes\fR(5) for descriptions of the following attributes:
  46 .sp
  47 
  48 .sp
  49 .TS
  50 box;
  51 c | c
  52 l | l .
  53 ATTRIBUTE TYPE  ATTRIBUTE VALUE
  54 _
  55 CSI     Enabled
  56 _
  57 Interface Stability     Standard
  58 _
  59 MT-Level        MT-Safe
  60 .TE
  61 
  62 .SH SEE ALSO
  63 .sp
  64 .LP
  65 \fB_toupper\fR(3C), \fBsetlocale\fR(3C), \fBattributes\fR(5),
  66 \fBstandards\fR(5)