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