---
name: "lsamen"
section: "3"
platform: "linux"
package: "lapack-doc"
version: "3.12.1-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/lsamen"
---

# lsamen(3)

lsamen: string comparison

## NAME

lsamen - lsamen: string comparison

## SYNOPSIS

### Functions

logical function **lsamen** (n, ca, cb)\
 **LSAMEN**

## Detailed Description

## Function Documentation

### logical function lsamen (integer n, character\*( \* ) ca, character\*( \* ) cb)

**LSAMEN**

**Purpose:**

```
!>
!> LSAMEN  tests if the first N letters of CA are the same as the
!> first N letters of CB, regardless of case.
!> 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.
!>
```

**Parameters**

*N*

```
!>          N is INTEGER
!>          The number of characters in CA and CB to be compared.
!>
```

*CA*

```
!>          CA is CHARACTER*(*)
!>
```

*CB*

```
!>          CB is CHARACTER*(*)
!>          CA and CB specify two character strings of length at least N.
!>          Only the first N characters of each string will be accessed.
!>
```

**Author**

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line **73** of file **lsamen.f**.

## Author

Generated automatically by Doxygen for LAPACK from the source code.
