Top "Argument-passing" questions

parameter-passing is the process of assigning values to the parameters of a function

void pointer as argument

The following C snippet: [...] void f1(void* a){ printf("f(a) address = %p \n",a); a = (void*)(int*)malloc(sizeof(…

c pointers arguments argument-passing void-pointers
Is there a difference between main(String args[]) and main(String[] args)?

Is there a difference between: public void main(String args[]) { ... } and public void main(String[] args) { ... } I don't believe so, …

java coding-style argument-passing
batch script subroutine: Passing arguments

My understanding is that in order to get the date from a file passed into a subroutine as an argument, …

batch-file arguments argument-passing subroutine
Splitting /proc/cmdline arguments with spaces

Most scripts that parse /proc/cmdline break it up into words and then filter out arguments with a case statement, …

parsing shell word argument-passing split
Passing an instance method as argument in PHP

I would like to create a Listener class class Listener { var $listeners = array(); public function add(callable $function) { $this->…

php class methods argument-passing
Command line passing quotes within quotes

I've been searching for a solution to this but couldn't find one. Not sure if its possible. Can I pass …

command-line parameter-passing filepath argument-passing double-quotes
Elegant way to pass multiple arguments to a function

I've got a function which looks like this: bool generate_script (bool net, bool tv, bool phone, std::string clientsID, …

c++ function argument-passing
How to pass arguments to REXX program through JCL

Can we pass arguments to a REXX program from JCL? I suppose, JCL PARM can be used as we use …

mainframe argument-passing jcl rexx
Argument passing strategy - environment variables vs. command line

Most of the applications we developers write need to be externally parametrized at startup. We pass file paths, pipe names, …

command-line process environment-variables argument-passing spawn
Remove last argument from argument list of shell script (bash)

This question concerns a bash script that is run in automator osx. I am using automator actions to get and …

bash shell argument-passing automator