NULL (The GNU Fortran Compiler) (original) (raw)


8.209 NULL — Function that returns an disassociated pointer

Synopsis:

PTR => NULL([MOLD])

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.

Class:

Transformational function

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 ()

Standard:

Fortran 95 and later

See also:

ASSOCIATED — Status of a pointer or pointer/target pair