Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 10/31/2024
Public
Document Table of Contents

lsamen

Tests two character strings for equality regardless of the case.

Syntax

val = lsamen( n, ca, cb )

Include Files

  • mkl.fi

Input Parameters

Name

Type

Description

n

INTEGER

The number of characters in ca and cb to be compared.

ca, cb

CHARACTER*(*)

Character strings of length at least n to be compared. Only the first n characters of each string will be accessed.

Description

This logical function tests whether the first n letters of one string are the same as the first n letters of the other string, regardless of the case.

Return Values

Name

Type

Description

val

LOGICAL

Result of the comparison:

  • .TRUE. if the first n letters in ca and cb character strings are equal, maybe except for the case, or if the length of character string ca or cb is less than n.
  • .FALSE. if the first n letters in ca and cb character strings are different for whatever cases.