Intel® oneAPI Math Kernel Library Developer Reference - Fortran

lsame

Tests two characters for equality regardless of the case.

Syntax

val = lsame( ca, cb )

Include Files

Input Parameters

Name

Type

Description

ca, cb

CHARACTER*1

The single characters to be compared

Description

This logical function checks whether two characters are equal regardless of the case.

Return Values

Name

Type

Description

val

LOGICAL

Result of the comparison:

  • .TRUE. if ca is the same letter as cb, maybe except for the case.
  • .FALSE. if ca and cb are different letters for whatever cases.