Skip to content

Table of user functions and global variables

Hani Andreas Ibrahim edited this page Apr 10, 2022 · 3 revisions
Name Kind Type Size Description Arguments Description; Type and Size of Arguments
getopt() Function Character 1 Returns short option character 1 or 2 1.) Short options string: character(80)
2.) Attributes on long options: derived type array “option_s” (optional)
option_s Array Derived Type 1-dimensional (:) Contains the 3 attributes of an long option 3 1.) Long name of an option: character(80)
2.) Specication if an option has an argument: logical
3.) Short name of an option: character(1)
optarg Variable Character 80 Contains the optional value of an option n/a n/a

Utillity function

Name Kind Type Size Description Arguments Description; Type and Size of Arguments
isnum Function Integer 1 Checks for numbers in "optarg"
ismum=0 => non-numeric
isnum=1 => integer
isnum>1 => real/double
1 1.) Argument string, e.g. "optarg": character(len=*)