Clicky

Fortran Wiki
null

Description

Returns a disassociated pointer.

If mold is present, a disassociated pointer of the same type is returned, otherwise the type is determined by context.

In Fortran 95, mold is optional. Please note that Fortran 2003 includes cases where it is required.

Standard

Fortran 95 and later

Class

Transformational function

Syntax

ptr => null([mold])

Arguments

  • mold - (Optional) shall be a pointer of any association status and of any type.

Return value

A disassociated pointer.

Example

real, pointer, dimension(:) :: vec => null ()

See also

associated

category: intrinsics