C Library Functions - get_command_arguments_stack (3)
NAME
get_command_arguments_stack(3f) - [ARGUMENTS:M_args] return a character array containing all the command line arguments
(LICENSE:PD)
CONTENTS
Synopsis
Description
Examples
Author
License
SYNOPSIS
function get_command_arguments(stack) result (args)
character(len=:),allocatable :: args(:)
DESCRIPTION
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
EXAMPLES
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
AUTHOR
John S. Urban, 2019
LICENSE
Public Domain
| Nemo Release 3.1 | get_command_arguments_stack (3) | June 29, 2025 |
Generated by manServer 1.08 from d00e37ea-4cf0-43af-8db1-c7d7d18b62f8 using man macros.