next up previous
Next: CHR_ITOB - Write an INTEGER value into a binary string
Up: Routine Descriptions
Previous: CHR_ISDIG - Return whether a character is a digit

CHR_ISNAM  -  Return whether a string is a valid name

Description:
Determine whether the given string is a valid name: i.e. whether it starts with an alphabetic character and continues with alphanumeric or underscore characters.

Invocation:
RESULT = CHR_ISNAM( STRING )

Arguments:
STRING = CHARACTER ( ) (Given)
The string to be tested.

Returned Value:
CHR_ISNAM = LOGICAL
Returns .TRUE. if the given string is a valid name, returns .FALSE. otherwise.



next up previous
Next: CHR_ITOB - Write an INTEGER value into a binary string
Up: Routine Descriptions
Previous: CHR_ISDIG - Return whether a character is a digit



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