aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-07-12 05:48:47 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-07-12 05:48:47 +0300
commita2d3aa472e7a0fc289ef601798bd3a2e0a591634 (patch)
tree6b393231a696c40a6424ca413e5c9bdf33a8767a /doc/gawktexi.in
parentb80ffd11949d7b8cc69827a03d7219018ccc377b (diff)
parenta2d6f6d61eef50ad7d62365dafff756c79ef40b8 (diff)
downloadegawk-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.in23
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