get_command_arguments_stack(3f) - [M_args] return a character array containing all the command line arguments
Synopsis
Description
Example
function get_command_arguments(stack) result (args)character(len=:),allocatable :: args(:)
Return a character array containing all the command arguments. For cases where it is difficult to process the command arguments one at a time, this function returns an array of the command line arguments
Sample program:
program demo_get_command_arguments_stack use M_args, only : get_command_arguments_stack implicit none character(len=:),allocatable :: myargs(:) integer :: i myargs=get_command_arguments_stack() write(*,(i0,t10,a))(i,myargs(i),i=1,size(myargs)) write(*,*)longest argument is ,len(myargs) write(*,*)number of arguments is ,size(myargs) end program demo_get_command_arguments_stack
get_command_arguments_stack (3) | October 12, 2019 |