The GNU Awk User's Guide - Functions Summary Go to the first , previous , next , last section, table of contents . 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 their 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 . Go to the first , previous , next , last section, table of contents .