xref: /dflybsd-src/lib/libc/locale/ctype.3 (revision c66c7e2fb8d0d28477d550f1d2a50c4677d547ff)
10d5acd74SJohn Marino.\" Copyright (c) 1991, 1993
20d5acd74SJohn Marino.\"	The Regents of the University of California.  All rights reserved.
30d5acd74SJohn Marino.\"
40d5acd74SJohn Marino.\" Redistribution and use in source and binary forms, with or without
50d5acd74SJohn Marino.\" modification, are permitted provided that the following conditions
60d5acd74SJohn Marino.\" are met:
70d5acd74SJohn Marino.\" 1. Redistributions of source code must retain the above copyright
80d5acd74SJohn Marino.\"    notice, this list of conditions and the following disclaimer.
90d5acd74SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright
100d5acd74SJohn Marino.\"    notice, this list of conditions and the following disclaimer in the
110d5acd74SJohn Marino.\"    documentation and/or other materials provided with the distribution.
12*c66c7e2fSzrj.\" 3. Neither the name of the University nor the names of its contributors
130d5acd74SJohn Marino.\"    may be used to endorse or promote products derived from this software
140d5acd74SJohn Marino.\"    without specific prior written permission.
150d5acd74SJohn Marino.\"
160d5acd74SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
170d5acd74SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
180d5acd74SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
190d5acd74SJohn Marino.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
200d5acd74SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
210d5acd74SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
220d5acd74SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
230d5acd74SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
240d5acd74SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
250d5acd74SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
260d5acd74SJohn Marino.\" SUCH DAMAGE.
270d5acd74SJohn Marino.\"
280d5acd74SJohn Marino.\"     @(#)ctype.3	8.1 (Berkeley) 6/4/93
290d5acd74SJohn Marino.\" $FreeBSD: head/lib/libc/locale/ctype.3 233648 2012-03-29 05:02:12Z eadler $
300d5acd74SJohn Marino.\"
310d5acd74SJohn Marino.Dd March 30, 2004
320d5acd74SJohn Marino.Dt CTYPE 3
330d5acd74SJohn Marino.Os
340d5acd74SJohn Marino.Sh NAME
350d5acd74SJohn Marino.Nm digittoint ,
360d5acd74SJohn Marino.Nm isalnum ,
370d5acd74SJohn Marino.Nm isalpha ,
380d5acd74SJohn Marino.Nm isascii ,
390d5acd74SJohn Marino.Nm isblank ,
400d5acd74SJohn Marino.Nm iscntrl ,
410d5acd74SJohn Marino.Nm isdigit ,
420d5acd74SJohn Marino.Nm isgraph ,
430d5acd74SJohn Marino.Nm ishexnumber ,
440d5acd74SJohn Marino.Nm isideogram ,
450d5acd74SJohn Marino.Nm islower ,
460d5acd74SJohn Marino.Nm isnumber ,
470d5acd74SJohn Marino.Nm isphonogram ,
480d5acd74SJohn Marino.Nm isprint ,
490d5acd74SJohn Marino.Nm ispunct ,
500d5acd74SJohn Marino.Nm isrune ,
510d5acd74SJohn Marino.Nm isspace ,
520d5acd74SJohn Marino.Nm isspecial ,
530d5acd74SJohn Marino.Nm isupper ,
540d5acd74SJohn Marino.Nm isxdigit ,
550d5acd74SJohn Marino.Nm toascii ,
560d5acd74SJohn Marino.Nm tolower ,
570d5acd74SJohn Marino.Nm toupper
580d5acd74SJohn Marino.Nd character classification functions
590d5acd74SJohn Marino.Sh LIBRARY
600d5acd74SJohn Marino.Lb libc
610d5acd74SJohn Marino.Sh SYNOPSIS
620d5acd74SJohn Marino.In ctype.h
630d5acd74SJohn Marino.Ft int
640d5acd74SJohn Marino.Fn digittoint "int c"
650d5acd74SJohn Marino.Ft int
660d5acd74SJohn Marino.Fn isalnum "int c"
670d5acd74SJohn Marino.Ft int
680d5acd74SJohn Marino.Fn isalpha "int c"
690d5acd74SJohn Marino.Ft int
700d5acd74SJohn Marino.Fn isascii "int c"
710d5acd74SJohn Marino.Ft int
720d5acd74SJohn Marino.Fn iscntrl "int c"
730d5acd74SJohn Marino.Ft int
740d5acd74SJohn Marino.Fn isdigit "int c"
750d5acd74SJohn Marino.Ft int
760d5acd74SJohn Marino.Fn isgraph "int c"
770d5acd74SJohn Marino.Ft int
780d5acd74SJohn Marino.Fn ishexnumber "int c"
790d5acd74SJohn Marino.Ft int
800d5acd74SJohn Marino.Fn isideogram "int c"
810d5acd74SJohn Marino.Ft int
820d5acd74SJohn Marino.Fn islower "int c"
830d5acd74SJohn Marino.Ft int
840d5acd74SJohn Marino.Fn isnumber "int c"
850d5acd74SJohn Marino.Ft int
860d5acd74SJohn Marino.Fn isphonogram "int c"
870d5acd74SJohn Marino.Ft int
880d5acd74SJohn Marino.Fn isspecial "int c"
890d5acd74SJohn Marino.Ft int
900d5acd74SJohn Marino.Fn isprint "int c"
910d5acd74SJohn Marino.Ft int
920d5acd74SJohn Marino.Fn ispunct "int c"
930d5acd74SJohn Marino.Ft int
940d5acd74SJohn Marino.Fn isrune "int c"
950d5acd74SJohn Marino.Ft int
960d5acd74SJohn Marino.Fn isspace "int c"
970d5acd74SJohn Marino.Ft int
980d5acd74SJohn Marino.Fn isupper "int c"
990d5acd74SJohn Marino.Ft int
1000d5acd74SJohn Marino.Fn isxdigit "int c"
1010d5acd74SJohn Marino.Ft int
1020d5acd74SJohn Marino.Fn toascii "int c"
1030d5acd74SJohn Marino.Ft int
1040d5acd74SJohn Marino.Fn tolower "int c"
1050d5acd74SJohn Marino.Ft int
1060d5acd74SJohn Marino.Fn toupper "int c"
1070d5acd74SJohn Marino.Sh DESCRIPTION
1080d5acd74SJohn MarinoThe above functions perform character tests and conversions on the integer
1090d5acd74SJohn Marino.Fa c .
1100d5acd74SJohn MarinoThey are available as macros, defined in the include file
1110d5acd74SJohn Marino.In ctype.h ,
1120d5acd74SJohn Marinoor as true functions in the C library.
1130d5acd74SJohn MarinoSee the specific manual pages for more information.
1140d5acd74SJohn Marino.Sh SEE ALSO
1150d5acd74SJohn Marino.Xr digittoint 3 ,
1160d5acd74SJohn Marino.Xr isalnum 3 ,
1170d5acd74SJohn Marino.Xr isalpha 3 ,
1180d5acd74SJohn Marino.Xr isascii 3 ,
1190d5acd74SJohn Marino.Xr isblank 3 ,
1200d5acd74SJohn Marino.Xr iscntrl 3 ,
1210d5acd74SJohn Marino.Xr isdigit 3 ,
1220d5acd74SJohn Marino.Xr isgraph 3 ,
1230d5acd74SJohn Marino.Xr isideogram 3 ,
1240d5acd74SJohn Marino.Xr islower 3 ,
1250d5acd74SJohn Marino.Xr isphonogram 3 ,
1260d5acd74SJohn Marino.Xr isprint 3 ,
1270d5acd74SJohn Marino.Xr ispunct 3 ,
1280d5acd74SJohn Marino.Xr isrune 3 ,
1290d5acd74SJohn Marino.Xr isspace 3 ,
1300d5acd74SJohn Marino.Xr isspecial 3 ,
1310d5acd74SJohn Marino.Xr isupper 3 ,
1320d5acd74SJohn Marino.Xr isxdigit 3 ,
1330d5acd74SJohn Marino.Xr toascii 3 ,
1340d5acd74SJohn Marino.Xr tolower 3 ,
1350d5acd74SJohn Marino.Xr toupper 3 ,
1360d5acd74SJohn Marino.Xr wctype 3 ,
1370d5acd74SJohn Marino.Xr ascii 7
1380d5acd74SJohn Marino.Sh STANDARDS
1390d5acd74SJohn MarinoThese functions, except for
1400d5acd74SJohn Marino.Fn digittoint ,
1410d5acd74SJohn Marino.Fn isascii ,
1420d5acd74SJohn Marino.Fn ishexnumber ,
1430d5acd74SJohn Marino.Fn isideogram ,
1440d5acd74SJohn Marino.Fn isnumber ,
1450d5acd74SJohn Marino.Fn isphonogram ,
1460d5acd74SJohn Marino.Fn isrune ,
1470d5acd74SJohn Marino.Fn isspecial
1480d5acd74SJohn Marinoand
1490d5acd74SJohn Marino.Fn toascii ,
1500d5acd74SJohn Marinoconform to
1510d5acd74SJohn Marino.St -isoC .
152