xref: /original-bsd/lib/libc/locale/isalpha.3 (revision 1b11f3a3)
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.\"     @(#)isalpha.3	5.4 (Berkeley) 10/27/91
11.\"
12.Dd
13.Dt ISALPHA 3
14.Os
15.Sh NAME
16.Nm isalpha
17.Nd alphabetic character test
18.Sh SYNOPSIS
19.Fd #include <ctype.h>
20.Ft int
21.Fn isalpha "int c";
22.Sh DESCRIPTION
23The
24.Fn isalpha
25function tests for any character for which
26.Xr isupper 3
27or
28.Xr islower 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 \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E''
34.It \&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J''
35.It \&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O''
36.It \&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T''
37.It \&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y''
38.It \&132\ ``Z'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d''
39.It \&145\ ``e'' \t146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i''
40.It \&152\ ``j'' \t153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n''
41.It \&157\ ``o'' \t160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s''
42.It \&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x''
43.It \&171\ ``y'' \t172\ ``z''
44.El
45.Sh RETURN VALUES
46The
47.Fn isalpha
48function returns zero if the character tests false and
49returns non-zero if the character tests true.
50.Sh SEE ALSO
51.Xr ctype 3 ,
52.Xr ascii 7
53.Sh STANDARDS
54The
55.Fn isalpha
56function conforms to
57.St -ansiC .
58