1994-05-27 05:00:24 +00:00
|
|
|
.\" Copyright (c) 1991, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" @(#)ctype.3 8.1 (Berkeley) 6/4/93
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1994-05-27 05:00:24 +00:00
|
|
|
.\"
|
2004-03-30 08:11:57 +00:00
|
|
|
.Dd March 30, 2004
|
1994-05-27 05:00:24 +00:00
|
|
|
.Dt CTYPE 3
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
2002-01-11 15:15:17 +00:00
|
|
|
.Nm digittoint ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Nm isalnum ,
|
|
|
|
.Nm isalpha ,
|
|
|
|
.Nm isascii ,
|
|
|
|
.Nm isblank ,
|
|
|
|
.Nm iscntrl ,
|
|
|
|
.Nm isdigit ,
|
|
|
|
.Nm isgraph ,
|
1999-04-29 21:54:20 +00:00
|
|
|
.Nm ishexnumber ,
|
|
|
|
.Nm isideogram ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Nm islower ,
|
1999-04-29 21:54:20 +00:00
|
|
|
.Nm isnumber ,
|
|
|
|
.Nm isphonogram ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Nm isprint ,
|
|
|
|
.Nm ispunct ,
|
1999-04-29 21:54:20 +00:00
|
|
|
.Nm isrune ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Nm isspace ,
|
1999-04-29 21:54:20 +00:00
|
|
|
.Nm isspecial ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Nm isupper ,
|
|
|
|
.Nm isxdigit ,
|
1999-04-29 21:54:20 +00:00
|
|
|
.Nm toascii ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Nm tolower ,
|
1999-04-29 21:54:20 +00:00
|
|
|
.Nm toupper
|
1994-05-27 05:00:24 +00:00
|
|
|
.Nd character classification macros
|
2000-04-21 09:42:15 +00:00
|
|
|
.Sh LIBRARY
|
|
|
|
.Lb libc
|
1994-05-27 05:00:24 +00:00
|
|
|
.Sh SYNOPSIS
|
2001-10-01 16:09:29 +00:00
|
|
|
.In ctype.h
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
2002-01-11 15:15:17 +00:00
|
|
|
.Fn digittoint "int c"
|
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn isalnum "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn isalpha "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn isascii "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn iscntrl "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn isdigit "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn isgraph "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1999-04-29 21:54:20 +00:00
|
|
|
.Fn ishexnumber "int c"
|
|
|
|
.Ft int
|
|
|
|
.Fn isideogram "int c"
|
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn islower "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1999-04-29 21:54:20 +00:00
|
|
|
.Fn isnumber "int c"
|
|
|
|
.Ft int
|
|
|
|
.Fn isphonogram "int c"
|
|
|
|
.Ft int
|
|
|
|
.Fn isspecial "int c"
|
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn isprint "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn ispunct "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1999-04-29 21:54:20 +00:00
|
|
|
.Fn isrune "int c"
|
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn isspace "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn isupper "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn isxdigit "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn toascii "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn tolower "int c"
|
1997-01-31 01:00:12 +00:00
|
|
|
.Ft int
|
1994-05-27 05:00:24 +00:00
|
|
|
.Fn toupper "int c"
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The above functions perform character tests and conversions on the integer
|
2002-12-18 13:33:04 +00:00
|
|
|
.Fa c .
|
1994-05-27 05:00:24 +00:00
|
|
|
They are available as macros, defined in the include file
|
2003-09-08 19:57:22 +00:00
|
|
|
.In ctype.h ,
|
1994-05-27 05:00:24 +00:00
|
|
|
or as true functions in the C library.
|
|
|
|
See the specific manual pages for more information.
|
|
|
|
.Sh SEE ALSO
|
2002-01-11 15:15:17 +00:00
|
|
|
.Xr digittoint 3 ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Xr isalnum 3 ,
|
|
|
|
.Xr isalpha 3 ,
|
|
|
|
.Xr isascii 3 ,
|
|
|
|
.Xr isblank 3 ,
|
|
|
|
.Xr iscntrl 3 ,
|
|
|
|
.Xr isdigit 3 ,
|
|
|
|
.Xr isgraph 3 ,
|
2004-03-30 08:11:57 +00:00
|
|
|
.Xr isideogram 3 ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Xr islower 3 ,
|
2004-03-30 08:11:57 +00:00
|
|
|
.Xr isphonogram 3 ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Xr isprint 3 ,
|
|
|
|
.Xr ispunct 3 ,
|
2004-06-30 20:09:10 +00:00
|
|
|
.Xr isrune 3 ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Xr isspace 3 ,
|
2004-03-30 08:11:57 +00:00
|
|
|
.Xr isspecial 3 ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Xr isupper 3 ,
|
|
|
|
.Xr isxdigit 3 ,
|
|
|
|
.Xr toascii 3 ,
|
|
|
|
.Xr tolower 3 ,
|
|
|
|
.Xr toupper 3 ,
|
2004-03-30 08:11:57 +00:00
|
|
|
.Xr wctype 3 ,
|
1994-05-27 05:00:24 +00:00
|
|
|
.Xr ascii 7
|
|
|
|
.Sh STANDARDS
|
|
|
|
These functions, except for
|
1999-12-14 10:35:09 +00:00
|
|
|
.Fn digittoint ,
|
|
|
|
.Fn isascii ,
|
|
|
|
.Fn ishexnumber ,
|
|
|
|
.Fn isideogram ,
|
|
|
|
.Fn isnumber ,
|
|
|
|
.Fn isphonogram ,
|
|
|
|
.Fn isrune ,
|
|
|
|
.Fn isspecial
|
1994-05-27 05:00:24 +00:00
|
|
|
and
|
|
|
|
.Fn toascii ,
|
|
|
|
conform to
|
2001-02-26 13:23:47 +00:00
|
|
|
.St -isoC .
|