Oracle® Solaris Studio 12.4: Fortran User's Guide

Exit Print View

Updated: March 2015
 
 

Please tell us how to improve our documentation:


0 of 500

0 of 500



0 of 500
Thank you for your feedback! If you want to participate in content improvement and share additional information, please click Feedback button.
Rate this document:

4.6.3 Command-Line Argument Intrinsics

The Fortran 2003 standard introduces three new intrinsics for processing command-line arguments and environment variables. These are:

  • GET_COMMAND(command, length, status)

    Returns in command the entire command line that invoked the program.

  • GET_COMMAND_ARGUMENT(number, value, length, status)

    Returns a command-line argument in value.

  • GET_ENVIRONMENT_VARIABLE(name, value, length, status, trim_name)

    Return the value of an environment variable.