diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-12 05:48:47 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-12 05:48:47 +0300 |
commit | a2d3aa472e7a0fc289ef601798bd3a2e0a591634 (patch) | |
tree | 6b393231a696c40a6424ca413e5c9bdf33a8767a /doc/gawktexi.in | |
parent | b80ffd11949d7b8cc69827a03d7219018ccc377b (diff) | |
parent | a2d6f6d61eef50ad7d62365dafff756c79ef40b8 (diff) | |
download | egawk-a2d3aa472e7a0fc289ef601798bd3a2e0a591634.tar.gz egawk-a2d3aa472e7a0fc289ef601798bd3a2e0a591634.tar.bz2 egawk-a2d3aa472e7a0fc289ef601798bd3a2e0a591634.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index e5177ca2..c205c1d5 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -14714,9 +14714,28 @@ function multiply(variable, amount) @} @end example +@noindent +You would use it like this: + +@example +BEGIN @{ + answer = 10.5 + multiply("answer", 4) + print "The answer is", answer +@} +@end example + +@noindent +When run, this produces: + +@example +$ @kbd{gawk -f answer.awk} +@print{} The answer is 42 +@end example + @quotation NOTE -In order to avoid severe time-travel paradoxes,@footnote{Not to mention difficult -implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} +In order to avoid severe time-travel paradoxes,@footnote{Not to mention +difficult implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} is available as an element within the @code{SYMTAB} array. @end quotation @end table |