Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
isxdigit(3) Guardian Native C Library Calls Reference Manual
NAME
isxdigit - Tests for a hexadecimal digit character
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <ctype.h>
int isxdigit(
int c);
PARAMETERS
c Specifies the character to be tested. In all cases, this parameter is an int data
type, whose value must be representable as an
unsigned char or must equal the
value of the macro EOF (defined in the stdio.h include file). When this parame-
ter has a value that cannot be represented as an unsigned char or EOF, the
result is undefined.
DESCRIPTION
This function tests for membership in the hexadecimal digit character class in the current locale.
If the character is part of the character class, the function returns a nonzero value for true; other-
wise, it returns a value of 0 (zero) for false.
The function returns a true value when c is a character of class xdigit in the program’s current
locale. The following characters are included in this class:
0123456789ABCDEFabcdef
NOTES
The LC_CTYPE category of the setlocale() function affects all conversions.
In the C locale, or in a locale where character-type information is not defined, characters are
classified according to the rules of the US-ASCII 7-bit coded character set. For any character
value greater than octal 177 (0177 in C-language context) the value 0 (zero) is returned.
RETURN VALUES
Upon successful completion of any function, a nonzero (TRUE) value is returned. Otherwise,
the value 0 (FALSE) is returned.
RELATED INFORMATION
Functions: isalnum(3), isalpha(3), isascii(3), iscntrl(3), isgraph(3), islower(3), isprint(3),
ispunct(3), isspace(3), isupper(3), setlocale(3).
Files: locale(4).
3−86 Hewlett-Packard Company 527192-007