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_SPACE

IS_SPACE Description Checks if the given character c is a whitespace character.

Read More

IS_PRINTABLE

IS_PRINTABLE Description Checks whether a given character ‘c’ is printable ascii or not.

Read More

IS_DIGIT

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

Read More