You copied the Doc URL to your clipboard.

Fortran 2003 functions

Fortran 2003-supported functions.

Fortran 2003 functions

Intrinsic

Description

Num. of Arguments

Argument Type

Result

COMMAND _ARGUMENT _COUNT

Return a scalar of type default integer that is equal to the number of arguments passed on the command line when the containing program was invoked. If there were no command arguments passed, the result is 0.

0

None

INTEGER

EXTENDS_TYPE _OF

Determine whether the dynamic type of A is an extension type of the dynamic type of B.

Syntax:

EXTENDS_TYPE _OF(A, B)

2

Objects of extensible type

LOGICAL SCALAR

GET_COMMAND _ARGUMENT

Return the specified command line argument of the command that invoked the program.

1 to 4

INTEGER plus optionally: CHAR, INTEGER, INTEGER

A command argument

GET_COMMAND

Return the entire command line that was used to invoke the program.

0 to 3

CHAR, INTEGER, INTEGER

A command line

GET_ENVIRONM ENT_VARIABLE

Return the value of the specified environment variable.

1 to 5

CHAR, CHAR, INTEGER, INTEGER, LOGICAL

Stores the value of NAME in VALUE

IS_IOSTAT _END

Test whether a variable has the value of the I/O status: 'end of file'.

1

INTEGER

LOGICAL

IS_IOSTAT _EOR

Test whether a variable has the value of the I/O status: 'end of record'.

1

INTEGER

LOGICAL

LEADZ

Count the number of leading zero bits.

1

INTEGER or bits

INTEGER

MOVE_ALLOC

Move an allocation from one allocatable object to another.

2

Any type and rank

None

NEW_LINE

Return the newline character.

1

CHARACTER

CHARACTER

SAME_TYPE _AS

Determine whether the dynamic type of A is the same as the dynamic type of B.

Syntax:

SAME_TYPE_AS (A, B)

2

Objects of extensible type

LOGICAL SCALAR

SCALE

Return the value A * B where B is the base of the number system in use for A.

Syntax:

`` SCALE(A, B)``

2

REAL, INTEGER

REAL

Was this page helpful? Yes No