next up previous
Next: CHR_ETOM - Translate a string from EBCDIC to the machine's character set
Up: Routine Descriptions
Previous: CHR_DTOC - Encode a DOUBLE PRECISION value as a string

CHR_EQUAL  -  Return whether two strings are equal

Description:
Determine whether the two given strings are the same, with case distinction. Their lengths must be identical after removing trailing blanks.

Invocation:
RESULT = CHR_EQUAL( STR1, STR2 )

Arguments:
STR1 = CHARACTER ( ) (Given)
The first string.
STR2 = CHARACTER ( ) (Given)
The second string.

Returned Value:
CHR_EQUAL = LOGICAL
Returned as .TRUE. if the two given strings are the same, otherwise .FALSE.

Notes:
This routine is OBSOLETE. It exists for historical reasons. Its function is better performed by a Fortran relational expression.



next up previous
Next: CHR_ETOM - Translate a string from EBCDIC to the machine's character set
Up: Routine Descriptions
Previous: CHR_DTOC - Encode a DOUBLE PRECISION value as a string



CHR Character Handling Routines
Starlink User Note 40
A C Charles
P C T Rees
A J Chipperfield
2 August 1995
E-mail:ussc@star.rl.ac.uk