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.

Descriptions of the Library Routines 2new(Input) Character. The value of the environment variable.lennew(Input) INTEGER(4). The length of new.ioverwrite(Input) INTEGER(4). A flag indicating whether to change the value of the environment variable ifit exists.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.If name does not exist, PXFSETENV adds it with value new.If name exists, PXFSETENV sets it’s value to new if ioverwrite is a nonzero number. If ioverwriteis zero, the value of name is not changed.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “PXFGETENV”Exampleprogram test2use ifposixcharacter*10 name, newinteger lenname, lennew, ioverwrite, ierrorname = "FOR_NEW"lenname = 7new = "ON"lennew = 2ioverwrite = 1CALL PXFSETENV (name, lenname, new, lennew, ioverwrite, ierror)print *, "name= ", nameprint *, "lenname= ", lennameprint *, "new= ", lennameprint *, "lennew= ", lennameprint *, "ierror= ", ierrorend2-325

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

Saved successfully!

Ooh no, something went wrong!