xref: /original-bsd/lib/libc/locale/isxdigit.3 (revision c3e32dec)
1.\" Copyright (c) 1991, 1993
2.\"	The Regents of the University of California.  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.\"     @(#)isxdigit.3	8.1 (Berkeley) 06/04/93
11.\"
12.Dd
13.Dt ISXDIGIT 3
14.Os
15.Sh NAME
16.Nm isxdigit
17.Nd hexadecimal-digit character test
18.Sh SYNOPSIS
19.Fd #include <ctype.h>
20.Ft int
21.Fn isxdigit "int c";
22.Sh DESCRIPTION
23The
24.Fn isxdigit
25function tests for any hexadecimal-digit character.
26In the ASCII character set, this includes the following characters:
27.sp
28.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
29.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4''
30.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9''
31.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E''
32.It \&106\ ``F'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d''
33.It \&145\ ``e'' \t146\ ``f''
34.El
35.Sh RETURN VALUES
36The
37.Fn isxdigit
38function returns zero if the character tests false and
39returns non-zero if the character tests true.
40.Sh SEE ALSO
41.Xr ctype 3 ,
42.Xr ascii 7
43.Sh STANDARDS
44The
45.Fn isxdigit
46function conforms to
47.St -ansiC .
48