Clicky

Fortran Wiki
get_command (Rev #2, changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #1 to #2: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

Description

Retrieve the entire command line that was used to invoke the program.

Standard

(削除) Fortran 2003 and later (削除ここまで)(追記) Fortran 2003 (追記ここまで)(追記) and later (追記ここまで)

Class

Subroutine

Syntax

call get_command(command)

Arguments

  • command - Shall be of type character and of default kind.

Return value

Stores the entire command line that was used to invoke the program in command. If command is not large enough, the command will be truncated.

Example

program test_get_command
 character(len=255) :: cmd
 call get_command(cmd)
 write (*,*) trim(cmd)
end program

See also

get_command_argument, command_argument_count

category: (削除) Intrinsics (削除ここまで)(追記) intrinsics (追記ここまで)

Revision from April 30, 2009 22:46:58 by Jason Blevins
Forward in time (to current) | Back in time (1 more) | See current | Hide changes | History | Rollback | View: Source | Linked from: Intrinsic procedures, command_argument_count, get_command_argument, OS integration, Command-line arguments

AltStyle によって変換されたページ (->オリジナル) /