Node: Stat Intrinsic (subroutine), Next: Stat Intrinsic (function), Previous: SRand Intrinsic, Up: Table of Intrinsic Functions
CALL Stat(File, SArray, Status)
CHARACTER; scalar; INTENT(IN).
INTEGER(KIND=1); DIMENSION(13); INTENT(OUT).
INTEGER(KIND=1); OPTIONAL; scalar; INTENT(OUT).
Obtains data about the given file File and places them in the array
A null character (
CHAR(0)) marks the end of
the name in File--otherwise,
trailing blanks in File are ignored.
The values in this array are extracted from the
stat structure as returned by
fstat(2) q.v., as follows:
Not all these elements are relevant on all systems. If an element is not relevant, it is returned as 0.
If the Status argument is supplied, it contains 0 on success or a nonzero error code upon return.
Some non-GNU implementations of Fortran provide this intrinsic as only a function, not as a subroutine, or do not support the (optional) Status argument.
For information on other intrinsics with the same name: See Stat Intrinsic (function).