xref: /dflybsd-src/lib/libc/locale/toupper.3 (revision c66c7e2fb8d0d28477d550f1d2a50c4677d547ff)
10d5acd74SJohn Marino.\" Copyright (c) 1989, 1991, 1993
20d5acd74SJohn Marino.\"	The Regents of the University of California.  All rights reserved.
30d5acd74SJohn Marino.\"
40d5acd74SJohn Marino.\" This code is derived from software contributed to Berkeley by
50d5acd74SJohn Marino.\" the American National Standards Committee X3, on Information
60d5acd74SJohn Marino.\" Processing Systems.
70d5acd74SJohn Marino.\"
80d5acd74SJohn Marino.\" Redistribution and use in source and binary forms, with or without
90d5acd74SJohn Marino.\" modification, are permitted provided that the following conditions
100d5acd74SJohn Marino.\" are met:
110d5acd74SJohn Marino.\" 1. Redistributions of source code must retain the above copyright
120d5acd74SJohn Marino.\"    notice, this list of conditions and the following disclaimer.
130d5acd74SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright
140d5acd74SJohn Marino.\"    notice, this list of conditions and the following disclaimer in the
150d5acd74SJohn Marino.\"    documentation and/or other materials provided with the distribution.
16*c66c7e2fSzrj.\" 3. Neither the name of the University nor the names of its contributors
170d5acd74SJohn Marino.\"    may be used to endorse or promote products derived from this software
180d5acd74SJohn Marino.\"    without specific prior written permission.
190d5acd74SJohn Marino.\"
200d5acd74SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
210d5acd74SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
220d5acd74SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
230d5acd74SJohn Marino.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
240d5acd74SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
250d5acd74SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
260d5acd74SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
270d5acd74SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
280d5acd74SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
290d5acd74SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
300d5acd74SJohn Marino.\" SUCH DAMAGE.
310d5acd74SJohn Marino.\"
320d5acd74SJohn Marino.\"	@(#)toupper.3	8.1 (Berkeley) 6/4/93
330d5acd74SJohn Marino.\" $FreeBSD: head/lib/libc/locale/toupper.3 210468 2010-07-25 13:32:19Z bcr $
340d5acd74SJohn Marino.\"
3594d35d83SSascha Wildner.Dd December 25, 2013
360d5acd74SJohn Marino.Dt TOUPPER 3
370d5acd74SJohn Marino.Os
380d5acd74SJohn Marino.Sh NAME
39382f042fSSascha Wildner.Nm toupper ,
40382f042fSSascha Wildner.Nm toupper_l
410d5acd74SJohn Marino.Nd lower case to upper case letter conversion
420d5acd74SJohn Marino.Sh LIBRARY
430d5acd74SJohn Marino.Lb libc
440d5acd74SJohn Marino.Sh SYNOPSIS
450d5acd74SJohn Marino.In ctype.h
460d5acd74SJohn Marino.Ft int
470d5acd74SJohn Marino.Fn toupper "int c"
48382f042fSSascha Wildner.Ft int
4994d35d83SSascha Wildner.Fn toupper_l "int c" "locale_t locale"
500d5acd74SJohn Marino.Sh DESCRIPTION
510d5acd74SJohn MarinoThe
520d5acd74SJohn Marino.Fn toupper
5394d35d83SSascha Wildnerand
5494d35d83SSascha Wildner.Fn toupper_l
5594d35d83SSascha Wildnerfunctions convert a lower-case letter to the corresponding
560d5acd74SJohn Marinoupper-case letter.
570d5acd74SJohn MarinoThe argument must be representable as an
580d5acd74SJohn Marino.Vt "unsigned char"
590d5acd74SJohn Marinoor the value of
600d5acd74SJohn Marino.Dv EOF .
61382f042fSSascha Wildner.Pp
6294d35d83SSascha WildnerThe _l-suffixed version takes an explicit
6394d35d83SSascha Wildner.Fa locale
6494d35d83SSascha Wildnerargument, whereas the
65382f042fSSascha Wildnernon-suffixed version uses the current global or per-thread locale.
660d5acd74SJohn Marino.Sh RETURN VALUES
670d5acd74SJohn MarinoIf the argument is a lower-case letter, the
680d5acd74SJohn Marino.Fn toupper
6994d35d83SSascha Wildnerand
7094d35d83SSascha Wildner.Fn toupper_l
7194d35d83SSascha Wildnerfunctions return the corresponding upper-case letter if there is
720d5acd74SJohn Marinoone; otherwise, the argument is returned unchanged.
730d5acd74SJohn Marino.Sh COMPATIBILITY
740d5acd74SJohn MarinoThe
750d5acd74SJohn Marino.Bx 4.4
760d5acd74SJohn Marinoextension of accepting arguments outside of the range of the
770d5acd74SJohn Marino.Vt "unsigned char"
780d5acd74SJohn Marinotype in locales with large character sets is considered obsolete
790d5acd74SJohn Marinoand may not be supported in future releases.
800d5acd74SJohn MarinoThe
810d5acd74SJohn Marino.Fn towupper
8294d35d83SSascha Wildnerand
8394d35d83SSascha Wildner.Fn towupper_l
8494d35d83SSascha Wildnerfunctions should be used instead.
850d5acd74SJohn Marino.Sh SEE ALSO
860d5acd74SJohn Marino.Xr ctype 3 ,
87382f042fSSascha Wildner.Xr ctype_l 3 ,
880d5acd74SJohn Marino.Xr isupper 3 ,
89382f042fSSascha Wildner.Xr towupper 3 ,
9094d35d83SSascha Wildner.Xr towupper_l 3 ,
91382f042fSSascha Wildner.Xr xlocale 3
920d5acd74SJohn Marino.Sh STANDARDS
930d5acd74SJohn MarinoThe
940d5acd74SJohn Marino.Fn toupper
950d5acd74SJohn Marinofunction conforms to
960d5acd74SJohn Marino.St -isoC .
9794d35d83SSascha WildnerThe
9894d35d83SSascha Wildner.Fn towupper_l
9994d35d83SSascha Wildnerfunction conforms to
10094d35d83SSascha Wildner.St -p1003.1-2008 .
101