all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
13
Task/Variadic-function/AWK/variadic-function-2.awk
Normal file
13
Task/Variadic-function/AWK/variadic-function-2.awk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
function f(a, b, c) {
|
||||
if (a != "") print a
|
||||
if (b != "") print b
|
||||
if (c != "") print c
|
||||
}
|
||||
|
||||
BEGIN {
|
||||
# Set ary[1] and ary[2] at runtime.
|
||||
split("Line 1:Line 2", ary, ":")
|
||||
|
||||
# Pass to f().
|
||||
f(ary[1], ary[2], ary[3])
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue