IS_XDIGIT

Table of Contents

IS_XDIGIT

Description

Checks if the given character c is a hexadecimal digit.

Parameters

NameDirectionDescription
cinThe character to check.

Success

Returns true for 0-9, a-f, A-F, false otherwise.

Failure

Function cannot fail - always returns boolean result.

Usage example (Cross-references)

    
    // Read hex digits
    while (IS_XDIGIT(*i)) {
    i++;
    }

Share :

Related Posts

IS_DIGIT

IS_DIGIT Description Checks if the given character c is an ASCII digit.

Read More

IN_RANGE

IN_RANGE Description Checks if the value x is within the inclusive range [lo, hi].

Read More

IS_CAPS_ALPHA

IS_CAPS_ALPHA Description Checks if the given character c is an uppercase ASCII alphabet.

Read More