12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

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

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

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>SETENVQQ affects only the environment that is local to the current process. You cannot use it tomodify the command-level environment. When the current process terminates, the environmentreverts to the level of the parent process. In most cases, this is the operating system level.However, you can pass the environment modified by SETENVQQ to any child process created byRUNQQ. These child processes get new variables and/or values added by SETENVQQ.SETENVQQ uses the C runtime routine _putenv and GETENVQQ uses the C runtime routinegetenv. From the C documentation:getenv and _putenv use the copy of the environment pointed to by the global variable_environ to access the environment. getenv operates only on the data structures accessible tothe run-time library and not on the environment segment created for the process by theoperating system.SETENVQQ and GETENVQQ will not work properly with the Windows* APIsSetEnvironmentVariable and GetEnvironmentVariable.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “GETENVQQ”, “RUNQQ”ExampleUSE IFPORTLOGICAL(4) successsuccess = SETENVQQ("PATH=c:\mydir\tmp")success = &SETENVQQ("LIB=c:\mylib\bessel.lib;c:\math\difq.lib")ENDSETERRORMODEQQPortability Subroutine: Sets the prompt mode for critical errors that by default generate systemprompts.Module: USE IFPORTSyntaxCALL SETERRORMODEQQ (pmode)pmode(Input) LOGICAL(4). Flag that determines whether a prompt is displayed when a critical erroroccurs.2-398

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

Saved successfully!

Ooh no, something went wrong!