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 SubroutinesDescriptionReturns the next character in ch from the file connected to the logical unit lu, bypassing normal<strong>Fortran</strong> I/O statements. If successful, the return value is zero; -1 indicates that an end-of-file wasdetected. Any other value is an error code.9.1.14. flushFlush a logical unit.Synopsissubroutine flush(lu)integer luDescriptionflush flushes the contents of the buffer associated with logical unit lu.9.1.15. forkFork a process.Synopsisinteger function fork()Descriptionfork creates a copy of the calling process. <strong>The</strong> value returned to the parent process will be theprocess id of the copy. <strong>The</strong> value returned to the child process (the copy) will be zero. If thereturned value is negative, an error occurred and the value is the negation of the system errorcode.9.1.16. fputcWrite a character to a logical unit.Synopsisinteger function fputc(lu, ch)integer lucharacter*(*) chDescriptionA character ch is written to the file connected to logical unit lu bypassing normal <strong>Fortran</strong> I/O. Ifsuccessful, a value of zero is returned; otherwise, an error code is returned.<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 194

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

Saved successfully!

Ooh no, something went wrong!