Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

2 Intel Fortran Libraries Reference"[rwxXst]*" indicates the permission to add, subtract, or set. On Windows systems, only "w" issignificant and affects write permission; all other letters are ignored. On Linux systems, all lettersare significant.Results:The result type is INTEGER(4). The result is zero if the mode was changed successfully;otherwise, an error code. Possible error codes are:• ENOENT: The specified file was not found.• EINVAL: The mode argument is invalid.• EPERM: Permission denied; the file’s mode cannot be changed.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “SETFILEACCESSQQ”ExampleUSE IFPORTinteger(4) I,IstatusI = ACCESS ("DATAFILE.TXT", "w")if (i) thenISTATUS = CHMOD ("datafile.txt", "[+w]")end ifI = ACCESS ("DATAFILE.TXT","w")print *, iCLEARSCREENGraphics Subroutine: Erases the target area and fills it with the current background color. Thissubroutine is only available on Windows* systems.Module: USE IFQWINSyntaxCALL CLEARSCREEN (area)area(Input) INTEGER(4). Identifies the target area. Must be one of the following symbolic constants(defined in IFQWIN.F90):• $GCLEARSCREEN - Clears the entire screen.• $GVIEWPORT - Clears only the current viewport.• $GWINDOW - Clears only the current text window (set with SETTEXTWINDOW).2-28

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>"[rwxXst]*" indicates the permission to add, subtract, or set. On Windows systems, only "w" issignificant and affects write permission; all other letters are ignored. On Linux systems, all lettersare significant.Results:The result type is INTEGER(4). The result is zero if the mode was changed successfully;otherwise, an error code. Possible error codes are:• ENOENT: The specified file was not found.• EINVAL: The mode argument is invalid.• EPERM: Permission denied; the file’s mode cannot be changed.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “SETFILEACCESSQQ”ExampleUSE IFPORTinteger(4) I,IstatusI = ACCESS ("DATAFILE.TXT", "w")if (i) thenISTATUS = CHMOD ("datafile.txt", "[+w]")end ifI = ACCESS ("DATAFILE.TXT","w")print *, iCLEARSCREENGraphics Subroutine: Erases the target area and fills it with the current background color. Thissubroutine is only available on Windows* systems.Module: USE IFQWINSyntaxCALL CLEARSCREEN (area)area(Input) INTEGER(4). Identifies the target area. Must be one of the following symbolic constants(defined in IFQWIN.F90):• $GCLEARSCREEN - Clears the entire screen.• $GVIEWPORT - Clears only the current viewport.• $GWINDOW - Clears only the current text window (set with SETTEXTWINDOW).2-28

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

Saved successfully!

Ooh no, something went wrong!