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
Welcome to our forums
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
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.
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).