10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3F Functions and VAX SubroutinesDescriptionftell returns the current position of the file connected to the logical unit lu. <strong>The</strong> value returned isan offset, in units of bytes, from the beginning of the file. If the value returned is negative, it isthe negation of the system error code.9.1.20. gerrorReturn system error message.Synopsischaracter*(*) function gerror()DescriptionReturn the system error message of the last detected system error.9.1.21. getargGet the nth command line argument.Synopsissubroutine getarg(n, arg)integer ncharacter*(*) argDescriptionReturn the nth command line argument in arg, where the 0th argument is the command name.9.1.22. iargc<strong>The</strong> iargc subroutine returns the number of command line arguments following the programname.integer function iargc()9.1.23. getcGet character from unit 5.Synopsisinteger function getc(ch)character*(*) ch<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 196

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

Saved successfully!

Ooh no, something went wrong!