Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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  c;
          CPU_CHAR  c_upper;
           
          c       = ASCII_CHAR_LATIN_LOWER_G;
          c_upper = ASCII_TO_UPPER(c);
          cmp     = ASCII_Cmp(c_upper, c_upper);
  • No labels