SCAN(STRING, SET, BACK)

Purpose

Scan a string for any one of the characters in a set of characters.

Class

Elemental function

Argument type and attributes

STRING
must be of type character.
SET
must be of type character with the same kind type parameter as STRING.
BACK (optional)
must be of type logical.

Result type and attributes

Default integer.

Result value

Examples