stdlib_lsamen Function

public pure function stdlib_lsamen(n, ca, cb)

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.

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
character(len=*), intent(in) :: ca
character(len=*), intent(in) :: cb

Return Value logical(kind=lk)