Silverfrost Forums

Welcome to our forums

CALL GETARG(1,BUFFER)

25 Aug 2008 1:56 #3734

This statement

CALL GETARG(1,BUFFER)

doesn't seem to be capturing the argument that I am passing to the executable. There are no errors or warnings. Should this not work with FTN95?

Thanks

25 Aug 2008 5:47 #3737

GETARG is not documented in the help file but is available as...

      SUBROUTINE GETARG(NARG,ARG)
C    RETURN NARG'TH COMMAND LINE ARGUMENT
      INTEGER*4 NARG
      CHARACTER*(*) ARG

The alternative is GET_COMMAND_ARGUMENT.

26 Aug 2008 2:33 #3747

BUFFER is defined as character*150. The argument does not get read into buffer.

I will research the other option that was mentioned (GET_COMMAND_ARGUMENT).

Please login to reply.