[UP]


Manual Reference Pages  - isspace (3)

NAME

isspace(3f) - [M_strings:COMPARE] returns .true. if character is a null, space, tab, carriage return, new line, vertical tab, or formfeed (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Returns
Example
Author
License

SYNOPSIS

elemental function isspace(onechar)

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

DESCRIPTION

isspace(3f) returns .true. if character is a null, space, tab, carriage return, new line, vertical tab, or formfeed

OPTIONS

onechar
  character to test

RETURNS

isspace
  returns true if character is ASCII white space

EXAMPLE

Sample program:

    program demo_isspace
    use M_strings, only : isspace
    implicit none
    integer                    :: i
    character(len=1),parameter :: string(*)=[(char(i),i=0,127)]
       write(*,’(20(g0,1x))’)’ISSPACE: ’, &
       & ichar(pack( string, isspace(string) ))
    end program demo_isspace

Results:

   ISSPACE:  0 9 10 11 12 13 32

AUTHOR

John S. Urban

LICENSE

Public Domain


isspace (3) March 11, 2021
Generated by manServer 1.08 from ca1bcbb8-bdab-476b-bccd-7b8e6c69b864 using man macros.