lsamen(3)

πŸ’– lsamen(3) β€” string comparison πŸ’–

okay so bestie, this page is from the Library Functions Manual, and we're doing a full vibe check on lsamen. It's literally a string comparison function and it's giving iconic utility energy. No cap. πŸŽ€


✨ NAME ✨

  • lsamen β€” lsamen: string comparison

πŸ¦‹ SYNOPSIS πŸ¦‹

Functions

  • logical function lsamen (n, ca, cb) β€” LSAMEN

🌈 Detailed Description 🌈

the full detailed description is basically the function documentation below, bestie β€” keep scrolling, it's worth it πŸ’«

πŸ’… Function Documentation πŸ’…

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

LSAMEN

🎯 Purpose:

okay so here's the whole point, bestie: LSAMEN tests if the first N letters of CA are the same as the first N letters of CB, regardless of case. It returns .TRUE. if CA and CB are equivalent except for case and .FALSE. otherwise. It also returns .FALSE. if LEN( CA ) or LEN( CB ) is less than N. Periodt. πŸ’…

and the source block is literally:

!>
!> 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 β€” the number of characters in CA and CB to be compared, and it's an INTEGER, bestie.
!>          N is INTEGER
!>          The number of characters in CA and CB to be compared.
!>
  • CA β€” it's CHARACTER*(*), a whole string vibe.
!>          CA is CHARACTER*(*)
!>
  • CB β€” also CHARACTER*(*); CA and CB specify two character strings of length at least N, and only the first N characters of each string will be accessed. (Important!)
!>          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.


kisses and slay, LAPACK Version 3.12.0 β€” lsamen(3) πŸ’–βœ¨

πŸ“¦ where this page comes from