ASCII_Cmp()

Determines if two characters are identical, ignoring case.

Files

lib_ascii.h/lib_ascii.c

Prototype

          CPU_BOOLEAN  ASCII_Cmp (CPU_CHAR  c1,
                                  CPU_CHAR  c2);

Arguments

c1

First character.

c2

Second character.

Returned Value

DEF_YES,

if characters are identical;

DEF_NO,

if character are not identical.

Required Configuration

None.

Notes / Warnings

None.

Example Usage

          CPU_CHAR  ch;
          CPU_CHAR  c_upper;


          ch      = ASCII_CHAR_LATIN_LOWER_G;
          c_upper = ASCII_TO_UPPER(ch);
          cmp     = ASCII_Cmp(c_upper, c_upper);