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 inCAandCBto be compared, and it's anINTEGER, bestie.
!> N is INTEGER
!> The number of characters in CA and CB to be compared.
!>
CAβ it'sCHARACTER*(*), a whole string vibe.
!> CA is CHARACTER*(*)
!>
CBβ alsoCHARACTER*(*);CAandCBspecify two character strings of length at leastN, and only the firstNcharacters 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
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms