lsame

Tests two characters for equality regardless of the case.

Syntax

FORTRAN:

val = lsame( ca, cb )

C:

val = lsame( ca, cb );

Include Files

Input Parameters

Name

Type

Description

ca, cb

FORTRAN: CHARACTER*1

C: const char*

FORTRAN: The single characters to be compared

C: Pointers to the single characters to be compared

Output Parameters

Name

Type

Description

val

FORTRAN: LOGICAL

C: int

Result of the comparison

Description

This logical function returns .TRUE. if ca is the same letter as cb regardless of the case, and .FALSE. otherwise.


Submit feedback on this help topic