1*22f7d534Sbostic.\" Copyright (c) 1991, 1993 2*22f7d534Sbostic.\" The Regents of the University of California. All rights reserved. 3e2185803Scael.\" 405c89e53Sbostic.\" This code is derived from software contributed to Berkeley by 505c89e53Sbostic.\" the American National Standards Committee X3, on Information 605c89e53Sbostic.\" Processing Systems. 705c89e53Sbostic.\" 8e2185803Scael.\" %sccs.include.redist.man% 9e2185803Scael.\" 10*22f7d534Sbostic.\" @(#)isxdigit.3 8.1 (Berkeley) 06/04/93 11e2185803Scael.\" 12e2185803Scael.Dd 13e2185803Scael.Dt ISXDIGIT 3 14e2185803Scael.Os 15e2185803Scael.Sh NAME 16e2185803Scael.Nm isxdigit 17e2185803Scael.Nd hexadecimal-digit character test 18e2185803Scael.Sh SYNOPSIS 19e2185803Scael.Fd #include <ctype.h> 20e2185803Scael.Ft int 21a8b77666Sbostic.Fn isxdigit "int c"; 22e2185803Scael.Sh DESCRIPTION 23e2185803ScaelThe 24e2185803Scael.Fn isxdigit 25e2185803Scaelfunction tests for any hexadecimal-digit character. 2672dbba0eSbosticIn the ASCII character set, this includes the following characters: 2772dbba0eSbostic.sp 2872dbba0eSbostic.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ 2972dbba0eSbostic.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4'' 3072dbba0eSbostic.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9'' 3172dbba0eSbostic.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E'' 3272dbba0eSbostic.It \&106\ ``F'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' 3372dbba0eSbostic.It \&145\ ``e'' \t146\ ``f'' 3472dbba0eSbostic.El 35e2185803Scael.Sh RETURN VALUES 36e2185803ScaelThe 37e2185803Scael.Fn isxdigit 38a8b77666Sbosticfunction returns zero if the character tests false and 39e2185803Scaelreturns non-zero if the character tests true. 40e2185803Scael.Sh SEE ALSO 41a8b77666Sbostic.Xr ctype 3 , 42e2185803Scael.Xr ascii 7 43e2185803Scael.Sh STANDARDS 44e2185803ScaelThe 45e2185803Scael.Fn isxdigit 46e2185803Scaelfunction conforms to 47e2185803Scael.St -ansiC . 48