Checks whether c is an ASCII letter (A .. Z, a .. z).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=1), | intent(in) | :: | c |
The character to test. |
elemental logical function is_alpha(c) character(len=1), intent(in) :: c !! The character to test. is_alpha = (c >= "A" .and. c <= "Z") .or. (c >= "a" .and. c <= "z") end function is_alpha