[UP]


Manual Reference Pages  - isalpha (3)

NAME

isalpha(3f) - [M_strings:COMPARE] returns .true. if character is a letter and .false. otherwise (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Returns
Example
Author
License

SYNOPSIS

elemental function isalpha(onechar)

   character,intent(in) :: onechar
   logical              :: isalpha

DESCRIPTION

isalpha(3f) returns .true. if character is a letter and

OPTIONS

onechar
  character to test

RETURNS

isalpha
  logical value returns .true. if character is a ASCII letter or false otherwise.

EXAMPLE

Sample program

    program demo_isalpha
    use M_strings, only : isalpha
    implicit none
    integer                    :: i
    character(len=1),parameter :: string(*)=[(char(i),i=0,127)]
       write(*,’(40(a))’)’ISGRAPH: ’,pack( string, isalpha(string) )
    end program demo_isalpha

Results:

   ISGRAPH: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm
   nopqrstuvwxyz

AUTHOR

John S. Urban

LICENSE

Public Domain


isalpha (3) March 11, 2021
Generated by manServer 1.08 from 439c5afb-b6ef-4100-935e-37a6fbe4f154 using man macros.