Previous: chrchr Up: ../chrrtn.html Next: chrcmp
INTEGER FUNCTION CHRCM2 (TEXTA,TEXTB,LENGTH) (Compare Characters Ignoring Case) Given two character strings in TEXTA(*) and TEXTB(*), compare "LENGTH" characters. Return -K, 0, or +K for A .LT. B, A .EQ. B, and A .GT. B, respectively, where the comparisons are done using the ASCII collating sequence, and K is the index of the first character which differs in the two strings. If any of "LOCA", "LOCB", or "LENGTH" are less than 1, CHRCM2 = 0 is returned. Upper- and lower-case letters are treated as equivalent.