1.\" $NetBSD: ctype.3,v 1.11 2003/08/07 16:42:46 agc Exp $ 2.\" 3.\" Copyright (c) 1991 Regents of the University of California. 4.\" All rights reserved. 5.\" 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 3. Neither the name of the University nor the names of its contributors 16.\" may be used to endorse or promote products derived from this software 17.\" without specific prior written permission. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" @(#)ctype.3 6.5 (Berkeley) 4/19/91 32.\" 33.Dd April 19, 1991 34.Dt CTYPE 3 35.Os 36.Sh NAME 37.Nm isalpha , 38.Nm isupper , 39.Nm islower , 40.Nm isdigit , 41.Nm isxdigit , 42.Nm isalnum , 43.Nm isspace , 44.Nm ispunct , 45.Nm isprint , 46.Nm isgraph , 47.Nm iscntrl , 48.Nm isblank , 49.Nm isascii , 50.Nm toupper , 51.Nm tolower , 52.Nm toascii 53.Nd character classification macros 54.Sh LIBRARY 55.Lb libc 56.Sh SYNOPSIS 57.In ctype.h 58.Fa int c 59.br 60.Fn isalpha c 61.Fn isupper c 62.Fn islower c 63.Fn isdigit c 64.Fn isxdigit c 65.Fn isalnum c 66.Fn isspace c 67.Fn ispunct c 68.Fn isprint c 69.Fn isgraph c 70.Fn iscntrl c 71.Fn isblank c 72.Fn isascii c 73.Fn toupper c 74.Fn tolower c 75.Fn toascii c 76.Sh DESCRIPTION 77The above macros perform character tests and conversions on the integer 78.Ar c . 79.Pp 80See the specific manual pages for more information. 81.Sh SEE ALSO 82.Xr isalnum 3 , 83.Xr isalpha 3 , 84.Xr isascii 3 , 85.Xr isblank 3 , 86.Xr iscntrl 3 , 87.Xr isdigit 3 , 88.Xr isgraph 3 , 89.Xr islower 3 , 90.Xr isprint 3 , 91.Xr ispunct 3 , 92.Xr isspace 3 , 93.Xr isupper 3 , 94.Xr isxdigit 3 , 95.Xr toascii 3 , 96.Xr tolower 3 , 97.Xr toupper 3 , 98.Xr ascii 7 99.Sh STANDARDS 100These functions, with the exception of 101.Fn isblank 102and 103.Fn toascii , 104conform to 105.St -ansiC . 106