Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 760 Bytes

030_isxdigit.asciidoc

File metadata and controls

44 lines (29 loc) · 760 Bytes

isxdigit

#include <ctype.h>

int isxdigit(char c);
DESCRIPTION

The isxdigit function tests c to determine if it is a hexadecimal digit ('A'-'Z', 'a'-'z', '0'-'9').

RETURN VALUE

The isxdigit function returns a value of 1 if c is a hexadecimal digit and a value of 0 if it is not.

SEE ALSO

isalnum, isalpha, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper

EXAMPLE
link:src/isxdigit.c[role=include]
OUTPUT
$ gcc -Wall isxdigit.c
$ ./a.out
isxdigit (e) YES
isxdigit (f) YES
isxdigit (g) NO
isxdigit (h) NO