xref: /openbsd/lib/libc/locale/towlower.3 (revision 898184e3)
1.\"	$OpenBSD: towlower.3,v 1.4 2010/09/10 18:38:19 jmc Exp $
2.\"	$NetBSD: towlower.3,v 1.7 2003/09/08 17:54:31 wiz Exp $
3.\"
4.\" Copyright (c) 1989, 1991 The Regents of the University of California.
5.\" All rights reserved.
6.\"
7.\" This code is derived from software contributed to Berkeley by
8.\" the American National Standards Committee X3, on Information
9.\" Processing Systems.
10.\"
11.\" Redistribution and use in source and binary forms, with or without
12.\" modification, are permitted provided that the following conditions
13.\" are met:
14.\" 1. Redistributions of source code must retain the above copyright
15.\"    notice, this list of conditions and the following disclaimer.
16.\" 2. Redistributions in binary form must reproduce the above copyright
17.\"    notice, this list of conditions and the following disclaimer in the
18.\"    documentation and/or other materials provided with the distribution.
19.\" 3. Neither the name of the University nor the names of its contributors
20.\"    may be used to endorse or promote products derived from this software
21.\"    without specific prior written permission.
22.\"
23.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\"	@(#)tolower.3	5.2 (Berkeley) 6/29/91
36.\"
37.Dd $Mdocdate: September 10 2010 $
38.Dt TOWLOWER 3
39.Os
40.Sh NAME
41.Nm towlower
42.Nd wide-character case letter conversion utilities
43.Sh SYNOPSIS
44.In wctype.h
45.Ft wint_t
46.Fn towlower "wint_t wc"
47.Ft wint_t
48.Fn towupper "wint_t wc"
49.Sh DESCRIPTION
50The
51.Fn towlower
52function converts an upper-case wide character to the corresponding lower-case
53letter.
54The
55.Fn towupper
56function converts an lower-case wide character to the corresponding upper-case
57letter.
58.Sh RETURN VALUES
59If the argument is an upper/lower-case letter, the
60.Fn tolower
61function returns the corresponding counterpart if there is
62one; otherwise the argument is returned unchanged.
63.Sh SEE ALSO
64.Xr tolower 3 ,
65.Xr toupper 3
66.Sh STANDARDS
67The functions conform to
68.St -isoC-amd1
69and
70.St -isoC-99 .
71