3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
9 *> Download LSAMEN + dependencies
10 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/lsamen.f">
12 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/lsamen.f">
14 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/lsamen.f">
21 * LOGICAL FUNCTION LSAMEN( N, CA, CB )
23 * .. Scalar Arguments ..
24 * CHARACTER*( * ) CA, CB
34 *> LSAMEN tests if the first N letters of CA are the same as the
35 *> first N letters of CB, regardless of case.
36 *> LSAMEN returns .TRUE. if CA and CB are equivalent except for case
37 *> and .FALSE. otherwise. LSAMEN also returns .FALSE. if LEN( CA )
38 *> or LEN( CB ) is less than N.
47 *> The number of characters in CA and CB to be compared.
52 *> CA is CHARACTER*(*)
57 *> CB is CHARACTER*(*)
58 *> CA and CB specify two character strings of length at least N.
59 *> Only the first N characters of each string will be accessed.
65 *> \author Univ. of Tennessee
66 *> \author Univ. of California Berkeley
67 *> \author Univ. of Colorado Denver
70 *> \date November 2011
72 *> \ingroup auxOTHERauxiliary
74 * =====================================================================
75 LOGICAL FUNCTION LSAMEN( N, CA, CB )
77 * -- LAPACK auxiliary routine (version 3.4.0) --
78 * -- LAPACK is a software package provided by Univ. of Tennessee, --
79 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
82 * .. Scalar Arguments ..
83 CHARACTER*( * ) CA, CB
87 * =====================================================================
92 * .. External Functions ..
96 * .. Intrinsic Functions ..
99 * .. Executable Statements ..
102 IF( LEN( CA ).LT.N .OR. LEN( CB ).LT.N )
105 * Do for each character in the two strings.
109 * Test if the characters are equal using LSAME.
111 IF( .NOT.LSAME( CA( I: I ), CB( I: I ) ) )