numblks(3F)

NUMBLKS - Returns the current size of a file in 4096-byte blocks

Showing IRIX 6.5.30 (default release). Last changed in IRIX 6.5.19.

NAME
     NUMBLKS - Returns the current size of a file in 4096-byte blocks

SYNOPSIS
     INTEGER NUMBLKS
     val = NUMBLKS(unit)

DESCRIPTION
     This routine is supported for programs compiled with the MIPSpro 7
     Fortran 90 compiler or compiled with the -craylibs option to the
     MIPSpro F77 compiler.

     NUMBLKS returns the current size of a file.

     All arguments must be type integer with default KIND, and the function
     must be type integer with KIND=8.

     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.