Developer Reference

Contents

lsamen

Tests two character strings for equality regardless of the case.

Syntax

MKL_INT
lsamen
(
const MKL_INT*
n
,
const char*
ca
,
const char*
cb
);
Include Files
  • mkl.h
Input Parameters
Name
Type
Description
n
const MKL_INT*
Pointer to the number of characters in
ca
and
cb
to be compared.
ca
,
cb
const char*
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
MKL_INT
Result of the comparison:
  • a non-zero value
    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
    .
  • zero
    if the first
    n
    letters in
    ca
    and
    cb
    character strings are different for whatever cases.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804