[UP]


Manual Reference Pages  - rget (3)

NAME

rget(3f) - [ARGUMENTS:M_kracken] given keyword fetch real value from command argument (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Returns
Example
See Also
Author
License

SYNOPSIS

function rget(keyword) result(value)

    character(len=*),intent(in)  :: keyword
    real                         :: value

DESCRIPTION

The rget(3f) function returns a scalar real value from a command line argument using the M_kracken(3fm) module.

OPTIONS

KEYWORD
  the dictionary keyword (in form VERB_KEYWORD) to retrieve. The VERB name comes from the first argument of the KRACKEN(3f) call. The KEYWORD is a keyword from the KRACKEN(3f) call that should be interpreted as a REAL value.

RETURNS

VALUE real value returned by function

EXAMPLE

Sample program

   program demo_rget
   use M_kracken, only: kracken, rget
   implicit none
   real :: val
     ! define command arguments and parse user command
     call kracken(’demo’,’-val 3.1416’ )
     val=rget(’demo_val’) ! get any values specified on -val option
     write(*,*)val        ! print the value
   end program demo_rget

Example program runs:

   $ demo_rget
      3.14159989

$ demo_rget -val 10 10.0000000

$ demo_rget -val 3.000 3.00000000

SEE ALSO

M_kracken(3fm), kracken(3f)

dget(3f), dgets(3f), iget(3f), igets(3f), lget(3f), lgets(3f), rget(3f), rgets(3f), sget(3f), sgets(3f), retrev(3f)

parse,dissect,store,setprompts,show

AUTHOR

John S. Urban

LICENSE

Public Domain


rget (3) March 11, 2021
Generated by manServer 1.08 from bd087267-0676-4d6f-b597-7182fb6dfc44 using man macros.