Oracle® Solaris Studio 12.4: Fortran User's Guide

Exit Print View

Updated: March 2015
 
 

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.