[UP]


Manual Reference Pages  - isxdigit (3)

NAME

isxdigit(3f) - [M_strings:COMPARE] returns .true. if character is a hexadecimal digit (0-9, a-f, or A-F). (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Returns
Example
Author
License

SYNOPSIS

elemental function isxdigit(onechar)

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

DESCRIPTION

isxdigit(3f) returns .true. if character is a hexadecimal digit (0-9, a-f, or A-F).

OPTIONS

onechar
  character to test

RETURNS

isxdigit
  logical value returns true if character is a hexadecimal digit

EXAMPLE

Sample program

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

Results:

   ISXDIGIT: 0123456789ABCDEFabcdef

AUTHOR

John S. Urban

LICENSE

Public Domain


isxdigit (3) March 11, 2021
Generated by manServer 1.08 from 8188e09b-9cf9-44e8-a368-b91a6ae523c1 using man macros.