Clicky

Fortran Wiki
command_argument_count (changes)

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

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

Description

(削除) command_argument_count() (削除ここまで)(追記) command_argument_count (追記ここまで) returns the number of arguments passed on the command line when the containing program was invoked.

Standard

Fortran 2003 and later

Class

Inquiry function

Syntax

(削除)

result = command_argument_count()

(削除ここまで)
(追記)
result = command_argument_count()
(追記ここまで)

Arguments

None

Return value

The return value is of type integer(4)

Example

program test_command_argument_count
 integer :: count
 count = command_argument_count()
 print *, count
end program test_command_argument_count

See also

get_command, get_command_argument

category: intrinsics

Revised on April 4, 2016 12:49:14 by Jason Blevins (128.146.137.52) (742 characters / 0.0 pages)
Edit | Back in time (3 revisions) | Hide changes | History | Views: Print | TeX | Source | Linked from: Intrinsic procedures, get_command, get_command_argument, OS integration, Command-line arguments

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