The GAWK Manual - Functions Summary Go to the previous , next section. Actual parameters supplied in the function call are used to instantiate the formal parameters declared in the function . Arrays are passed by reference, other variables are passed by value. If there are fewer arguments passed than there are names in parameter-list , the extra names are given the null string as value.
Extra names have the effect of local variables.
This is to avoid a syntactic ambiguity with the concatenation operator. Use the return statement to return a value from a function . See section User-defined Functions , for a more complete description. Go to the previous , next section.