12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries 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.

Descriptions of the Library Routines 2Module: USE IFPORTSyntaxresult = FGETC (lunit, char)lunit(Input) INTEGER(4). Unit number of a file. Must be currently connected to a file when thefunction is called.char(Output) CHARACTER*1. Next available character in the file. If lunit is connected to a consoledevice, then no characters are returned until the Enter key is pressed.Results:The result type is INTEGER(4). The result is zero if the read is successful, or –1 if an end-of-file isdetected. A positive value is either a system error code or a <strong>Fortran</strong> I/O error code, such as:EINVAL: The specified unit is invalid (either not already open, or an invalid unit number).If you use WRITE, READ, or any other <strong>Fortran</strong> I/O statements with lunit, be sure to read "Inputand Output With Portability Routines" in your user’s guide.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “GETCHARQQ”, the READ statement in the Language <strong>Reference</strong>ExampleUSE IFPORTCHARACTER incharINTEGER istatusistatus = FGETC(5,inchar)PRINT *, incharENDFINDFILEQQPortability Function: Searches for a specified file in the directories listed in the path containedin the environment variable.Module: USE IFPORTSyntaxresult = FINDFILEQQ (filename, varname, pathbuf)2-77

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

Saved successfully!

Ooh no, something went wrong!