lsamen

Tests two character strings for equality regardless of case.

Syntax

val = lsamen(n, ca, cb)

Include Files

The FORTRAN 77 interfaces are specified in the mkl_lapack.fi include file (to be used in Fortran programs) and in the mkl_lapack.h include file (to be used in C programs).

Description

This logical function tests if the first n letters of the string ca are the same as the first n letters of cb, regardless of case. The function lsamen returns .TRUE. if ca and cb are equivalent except for case and .FALSE. otherwise. lsamen also returns .FALSE. if len(ca) or len(cb) is less than n.

Input Parameters

n

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

ca, cb

CHARACTER*(*). Specify two character strings of length at least n to be compared. Only the first n characters of each string will be accessed.

Output Parameters

val

LOGICAL. Result of the comparison.


Submit feedback on this help topic

Copyright © 1994 - 2011, Intel Corporation. All rights reserved.