null(3f) - [FORTRAN:INTRINSIC:TRANSFORMATIONAL FUNCTION] Function that returns a disassociated pointer
ptr => null([mold])
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.
MOLD (Optional) shall be a pointer of any association status and of any type.
A disassociated pointer.
Sample program:
real, pointer, dimension(:) :: vec => null ()
[[Fortran 95]] and later
Transformational function
associated(3)
null (3) | March 11, 2021 |