Commit | Line | Data |
---|---|---|
b63f7948 CL |
1 | .\" Copyright (c) 1991 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
043368e6 KB |
4 | .\" This code is derived from software contributed to Berkeley by |
5 | .\" the American National Standards Committee X3, on Information | |
6 | .\" Processing Systems. | |
7 | .\" | |
b63f7948 CL |
8 | .\" %sccs.include.redist.man% |
9 | .\" | |
c55ab048 | 10 | .\" @(#)isalnum.3 5.4 (Berkeley) %G% |
b63f7948 CL |
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 | |
7159acae | 21 | .Fn isalnum "int c"; |
b63f7948 CL |
22 | .Sh DESCRIPTION |
23 | The | |
24 | .Fn isalnum | |
7159acae | 25 | function tests for any character for which |
b63f7948 CL |
26 | .Xr isalpha 3 |
27 | or | |
28 | .Xr isdigit 3 | |
29 | is true. | |
c55ab048 KB |
30 | In 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 | |
b63f7948 CL |
47 | .Sh RETURN VALUES |
48 | The | |
49 | .Fn isalnum | |
7159acae | 50 | function returns zero if the character tests false and |
b63f7948 CL |
51 | returns non-zero if the character tests true. |
52 | .Sh SEE ALSO | |
7159acae | 53 | .Xr ctype 3 , |
b63f7948 CL |
54 | .Xr ascii 7 |
55 | .Sh STANDARDS | |
56 | The | |
57 | .Fn isalnum | |
58 | function conforms to | |
59 | .St -ansiC . |