1*61137Sbostic.\" Copyright (c) 1991, 1993 2*61137Sbostic.\" The Regents of the University of California. All rights reserved. 348904Scael.\" 450304Sbostic.\" This code is derived from software contributed to Berkeley by 550304Sbostic.\" the American National Standards Committee X3, on Information 650304Sbostic.\" Processing Systems. 750304Sbostic.\" 848904Scael.\" %sccs.include.redist.man% 948904Scael.\" 10*61137Sbostic.\" @(#)isalpha.3 8.1 (Berkeley) 06/04/93 1148904Scael.\" 1248904Scael.Dd 1348904Scael.Dt ISALPHA 3 1448904Scael.Os 1548904Scael.Sh NAME 1648904Scael.Nm isalpha 1748904Scael.Nd alphabetic character test 1848904Scael.Sh SYNOPSIS 1948904Scael.Fd #include <ctype.h> 2048904Scael.Ft int 2151387Sbostic.Fn isalpha "int c"; 2248904Scael.Sh DESCRIPTION 2348904ScaelThe 2448904Scael.Fn isalpha 2548904Scaelfunction tests for any character for which 2648904Scael.Xr isupper 3 2748904Scaelor 2848904Scael.Xr islower 3 2948904Scaelis true. 3051409SbosticIn the ASCII character set, this includes the following characters: 3151409Sbostic.sp 3251409Sbostic.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ 3351409Sbostic.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E'' 3451409Sbostic.It \&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J'' 3551409Sbostic.It \&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O'' 3651409Sbostic.It \&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T'' 3751409Sbostic.It \&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y'' 3851409Sbostic.It \&132\ ``Z'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' 3951409Sbostic.It \&145\ ``e'' \t146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' 4051409Sbostic.It \&152\ ``j'' \t153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' 4151409Sbostic.It \&157\ ``o'' \t160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' 4251409Sbostic.It \&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' 4351409Sbostic.It \&171\ ``y'' \t172\ ``z'' 4451409Sbostic.El 4548904Scael.Sh RETURN VALUES 4648904ScaelThe 4748904Scael.Fn isalpha 4851387Sbosticfunction returns zero if the character tests false and 4948904Scaelreturns non-zero if the character tests true. 5048904Scael.Sh SEE ALSO 5151387Sbostic.Xr ctype 3 , 5248904Scael.Xr ascii 7 5348904Scael.Sh STANDARDS 5448904ScaelThe 5548904Scael.Fn isalpha 5648904Scaelfunction conforms to 5748904Scael.St -ansiC . 58