# lsamen

Tests two character strings for equality regardless of case.

## Syntax

val = lsamen(n, ca, cb)

## 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.

Parent topic: Utility Functions and Routines