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>
   1 '\" te
   2 .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
   3 .\"  Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved
   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 .\" 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 .\" 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 TOLOWER 3C "Jun 21, 2014"
   8 .SH NAME
   9 tolower, tolower_l \- transliterate upper-case characters to lower-case
  10 .SH SYNOPSIS
  11 .LP
  12 .nf
  13 #include <ctype.h>
  14 
  15 \fBint\fR \fBtolower\fR(\fBint\fR \fIc\fR);
  16 .fi
  17 .LP
  18 .nf
  19 \fBint\fR \fBtolower_l\fR(\fBint\fR \fIc\fR, \fBlocale_t\fR \fIloc\fR);
  20 .fi
  21 
  22 .SH DESCRIPTION
  23 .LP
  24 The \fBtolower()\fR function has as a domain a type \fBint\fR, the value of
  25 which is representable as an \fBunsigned char\fR or the value of \fBEOF\fR. If
  26 the argument has any other value, the argument is returned unchanged. If the
  27 argument of \fBtolower()\fR represents an upper-case letter, and there exists a
  28 corresponding lower-case letter (as defined by character type information in
  29 the locale category \fB\fR\fBLC_CTYPE\fR\fB), \fR the result is the
  30 corresponding lower-case letter. All other arguments in the domain are returned
  31 unchanged.
  32 .LP
  33 The function \fBtolower_l()\fR behaves identically to \fBtolower()\fR, except
  34 instead of operating in the current locale, it operates in the locale
  35 specified by \fIloc\fR.





  36 .SH RETURN VALUES
  37 .LP
  38 On successful completion, \fBtolower()\fR returns the lower-case letter
  39 corresponding to the argument passed. Otherwise, it returns the argument
  40 unchanged.
  41 .SH ERRORS
  42 .LP
  43 No errors are defined.
  44 .SH ATTRIBUTES
  45 .LP
  46 See \fBattributes\fR(5) for descriptions of the following attributes:
  47 .TS
  48 box;
  49 c | c
  50 l | l .
  51 ATTRIBUTE TYPE  ATTRIBUTE VALUE
  52 _
  53 CSI     Enabled
  54 _
  55 Interface Stability     Standard
  56 _
  57 MT-Level        MT-Safe
  58 .TE
  59 
  60 .SH SEE ALSO
  61 .LP
  62 \fB_tolower\fR(3C), \fBnewlocale\fR(3C), \fBsetlocale\fR(3C),
  63 \fBuselocale\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
   1 '\" te
   2 .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
   3 .\"  Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved
   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 .\" 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 .\" 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 TOLOWER 3C "Oct 4, 2015"
   8 .SH NAME
   9 tolower, tolower_l \- transliterate upper-case characters to lower-case
  10 .SH SYNOPSIS
  11 .LP
  12 .nf
  13 #include <ctype.h>
  14 
  15 \fBint\fR \fBtolower\fR(\fBint\fR \fIc\fR);
  16 .fi
  17 .LP
  18 .nf
  19 \fBint\fR \fBtolower_l\fR(\fBint\fR \fIc\fR, \fBlocale_t\fR \fIloc\fR);
  20 .fi
  21 
  22 .SH DESCRIPTION
  23 .LP
  24 The \fBtolower()\fR function has as a domain of type \fBint\fR, the value of
  25 which is representable as an \fBunsigned char\fR or the value of \fBEOF\fR. If
  26 the argument has any other value, the argument is returned unchanged. If the
  27 argument of \fBtolower()\fR represents an upper-case letter, and there exists a
  28 corresponding lower-case letter (as defined by character type information in
  29 the locale category \fB\fR\fBLC_CTYPE\fR\fB), \fR the result is the
  30 corresponding lower-case letter. All other arguments in the domain are returned
  31 unchanged.
  32 .LP
  33 The function \fBtolower_l()\fR behaves identically to \fBtolower()\fR, except
  34 instead of operating in the current locale, it operates in the locale
  35 specified by \fIloc\fR.
  36 .LP
  37 A macro form, \fB_tolower()\fR exists. It is defined for standards
  38 conformance, particularly with legacy standards. It was deprecated in
  39 POSIX 2008 (Issue 7), and its use is discouraged. The macro, on this
  40 system, is just an alias for \fBtolower()\fR.
  41 .SH RETURN VALUES
  42 .LP
  43 On successful completion, \fBtolower()\fR returns the lower-case letter
  44 corresponding to the argument passed. Otherwise, it returns the argument
  45 unchanged.
  46 .SH ERRORS
  47 .LP
  48 No errors are defined.
  49 .SH ATTRIBUTES
  50 .LP
  51 See \fBattributes\fR(5) for descriptions of the following attributes:
  52 .TS
  53 box;
  54 c | c
  55 l | l .
  56 ATTRIBUTE TYPE  ATTRIBUTE VALUE
  57 _
  58 CSI     Enabled
  59 _
  60 Interface Stability     Standard
  61 _
  62 MT-Level        MT-Safe
  63 .TE
  64 
  65 .SH SEE ALSO
  66 .LP
  67 \fBnewlocale\fR(3C), \fBsetlocale\fR(3C),
  68 \fBuselocale\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)