02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BLAS and libU77 libraries<br />

libU77 routines<br />

Table 12-3 libU77 routines (Continued)<br />

Name Description and signature<br />

FSEEK Repositions a file specified by an <strong>HP</strong> <strong>Fortran</strong> logical unit.<br />

614<br />

INTEGER FUNCTION FSEEK (lunit, offset, from)<br />

INTEGER :: lunit, offset, from<br />

FSTAT Returns detailed information about a file by logical unit number.<br />

INTEGER FUNCTION FSTAT (lunit, statb)<br />

INTEGER :: lunit, statb(12)<br />

FTELL Returns the current position of the file associated with the specified logical<br />

unit.<br />

INTEGER FUNCTION FTELL (lunit)<br />

INTEGER :: lunit<br />

GERROR Returns the system error message to string; available as a subroutine:<br />

CHARACTER(LEN=*) :: string<br />

SUBROUTINE GERROR (string)<br />

And as a function:<br />

CHARACTER(LEN=*) FUNCTION GERROR()<br />

GETARG Returns command-line arguments.<br />

SUBROUTINE GETARG (k, arg)<br />

INTEGER :: k<br />

CHARACTER(LEN=*) :: arg<br />

GETC Retrieves a character from <strong>HP</strong> <strong>Fortran</strong> logical unit 5.<br />

INTEGER FUNCTION GETC (char)<br />

CHARACTER char<br />

GETCWD Retrieves the pathname of the current working directory.<br />

INTEGER FUNCTION GETCWD (dir_name)<br />

CHARACTER(LEN=*) :: dir_name<br />

GETENV Retrieves the value of an environment variable.<br />

SUBROUTINE GETENV (ename, evalue)<br />

CHARACTER(LEN=*) :: ename, evalue<br />

GETGID Retrieves the group ID of the user of the process.<br />

INTEGER FUNCTION GETGID()<br />

Chapter 12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!