Manual Reference Pages  - isspace (3m_strings)

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
Examples
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

EXAMPLES

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: ’, &
       & iachar(pack( string, isspace(string) ))
    end program demo_isspace

Results:

   ISSPACE:  0 9 10 11 12 13 32

AUTHOR

John S. Urban

LICENSE

Public Domain


Nemo Release 3.1 isspace (3m_strings) July 20, 2024
Generated by manServer 1.08 from b8cbc7e7-0f13-4821-8cd5-049b332b9e8c using man macros.