IS_CAPS_ALPHA

Table of Contents

IS_CAPS_ALPHA

Description

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

Parameters

NameDirectionDescription
cinThe character to check.

Success

Returns true for A-Z, false otherwise.

Failure

Function cannot fail - always returns boolean result.

Usage example (Cross-references)

    ///
    /// TAGS: Character, Conversion, Case
    #define TO_LOWER(c) (IS_CAPS_ALPHA(c) ? ((c) + ('a' - 'A')) : (c))
    
    ///

Share :

Related Posts

IN_RANGE

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

Read More