Skip to content

Commit

Permalink
how to use new get arg in f03
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinath Vadlamani committed Jan 10, 2013
1 parent f74f186 commit bcf0513
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions codingTests/fortran2003/testgetarg.f03
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
PROGRAM test_get_command_argument
INTEGER :: i
CHARACTER(len=32) :: arg

i = 0
DO
CALL get_command_argument(i, arg)
IF (LEN_TRIM(arg) == 0) EXIT

WRITE (*,*) TRIM(arg)
i = i+1
END DO
END PROGRAM

0 comments on commit bcf0513

Please sign in to comment.