Previous: chrcm2 Up: ../chrrtn.html Next: chrcth
INTEGER FUNCTION CHRCMP (TEXTA,TEXTB,LENGTH) (Compare Characters) 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 "LENGTH" is less than 1, CHRCM2 = 0 is returned. Upper- and lower-case letters are treated as distinct.