1.\" Copyright (c) 1991 The Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" %sccs.include.redist.man% 9.\" 10.\" @(#)isalnum.3 5.4 (Berkeley) 10/27/91 11.\" 12.Dd 13.Dt ISALNUM 3 14.Os 15.Sh NAME 16.Nm isalnum 17.Nd alphanumeric character test 18.Sh SYNOPSIS 19.Fd #include <ctype.h> 20.Ft int 21.Fn isalnum "int c"; 22.Sh DESCRIPTION 23The 24.Fn isalnum 25function tests for any character for which 26.Xr isalpha 3 27or 28.Xr isdigit 3 29is true. 30In the ASCII character set, this includes the following characters: 31.sp 32.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ 33.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4'' 34.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9'' 35.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E'' 36.It \&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J'' 37.It \&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O'' 38.It \&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T'' 39.It \&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y'' 40.It \&132\ ``Z'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' 41.It \&145\ ``e'' \t146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' 42.It \&152\ ``j'' \t153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' 43.It \&157\ ``o'' \t160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' 44.It \&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' 45.It \&171\ ``y'' \t172\ ``z'' 46.El 47.Sh RETURN VALUES 48The 49.Fn isalnum 50function returns zero if the character tests false and 51returns non-zero if the character tests true. 52.Sh SEE ALSO 53.Xr ctype 3 , 54.Xr ascii 7 55.Sh STANDARDS 56The 57.Fn isalnum 58function conforms to 59.St -ansiC . 60