1*61137Sbostic.\" Copyright (c) 1991, 1993 2*61137Sbostic.\" The Regents of the University of California. All rights reserved. 348903Scael.\" 450304Sbostic.\" This code is derived from software contributed to Berkeley by 550304Sbostic.\" the American National Standards Committee X3, on Information 650304Sbostic.\" Processing Systems. 750304Sbostic.\" 848903Scael.\" %sccs.include.redist.man% 948903Scael.\" 10*61137Sbostic.\" @(#)isalnum.3 8.1 (Berkeley) 06/04/93 1148903Scael.\" 1248903Scael.Dd 1348903Scael.Dt ISALNUM 3 1448903Scael.Os 1548903Scael.Sh NAME 1648903Scael.Nm isalnum 1748903Scael.Nd alphanumeric character test 1848903Scael.Sh SYNOPSIS 1948903Scael.Fd #include <ctype.h> 2048903Scael.Ft int 2151387Sbostic.Fn isalnum "int c"; 2248903Scael.Sh DESCRIPTION 2348903ScaelThe 2448903Scael.Fn isalnum 2551387Sbosticfunction tests for any character for which 2648903Scael.Xr isalpha 3 2748903Scaelor 2848903Scael.Xr isdigit 3 2948903Scaelis 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 \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4'' 3451409Sbostic.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9'' 3551409Sbostic.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E'' 3651409Sbostic.It \&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J'' 3751409Sbostic.It \&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O'' 3851409Sbostic.It \&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T'' 3951409Sbostic.It \&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y'' 4051409Sbostic.It \&132\ ``Z'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' 4151409Sbostic.It \&145\ ``e'' \t146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' 4251409Sbostic.It \&152\ ``j'' \t153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' 4351409Sbostic.It \&157\ ``o'' \t160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' 4451409Sbostic.It \&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' 4551409Sbostic.It \&171\ ``y'' \t172\ ``z'' 4651409Sbostic.El 4748903Scael.Sh RETURN VALUES 4848903ScaelThe 4948903Scael.Fn isalnum 5051387Sbosticfunction returns zero if the character tests false and 5148903Scaelreturns non-zero if the character tests true. 5248903Scael.Sh SEE ALSO 5351387Sbostic.Xr ctype 3 , 5448903Scael.Xr ascii 7 5548903Scael.Sh STANDARDS 5648903ScaelThe 5748903Scael.Fn isalnum 5848903Scaelfunction conforms to 5948903Scael.St -ansiC . 60