numblks
- Date:
02-08-2023
NAME
NUMBLKS - Returns the current size of a file in 4096-byte blocks
SYNOPSIS
INTEGER NUMBLKS
val = NUMBLKS(unit)
DESCRIPTION
NUMBLKS returns the current size of a file.
When using the Cray Fortran compiler, the argument must be type integer with default KIND, and the function must be KIND=4.
The following is a list of arguments for this routine:
- val
File size in 4096-byte blocks. This returned value reflects only the data actually written to disk and does not take into account data still in the buffers. A value of 0 is returned if the file is a pipe or character special device. A negative value indicates that unit is not connected or a system operation failed unexpectedly.
- unit
An integer variable, expression, or constant containing a Fortran unit number.