aboutsummaryrefslogtreecommitdiffstats
path: root/extension/testarrayparm.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 13:14:38 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 13:14:38 +0300
commitfae4762eba9ff7bb466a600130e9c90eaac6b0bc (patch)
tree62711fe7cd511824b5f8a90ba1ba7b523d42e127 /extension/testarrayparm.awk
parentbc70de7b3302d5a81515b901cae376b8b51d2004 (diff)
downloadegawk-fae4762eba9ff7bb466a600130e9c90eaac6b0bc.tar.gz
egawk-fae4762eba9ff7bb466a600130e9c90eaac6b0bc.tar.bz2
egawk-fae4762eba9ff7bb466a600130e9c90eaac6b0bc.zip
Move to gawk-3.1.1.
Diffstat (limited to 'extension/testarrayparm.awk')
-rw-r--r--extension/testarrayparm.awk10
1 files changed, 10 insertions, 0 deletions
diff --git a/extension/testarrayparm.awk b/extension/testarrayparm.awk
new file mode 100644
index 00000000..08178f3e
--- /dev/null
+++ b/extension/testarrayparm.awk
@@ -0,0 +1,10 @@
+#! /bin/awk -f
+
+BEGIN {
+ extension("./arrayparm.so", "dlload")
+
+ mkarray(newvar, "hi", "hello")
+
+ for (i in newvar)
+ printf ("newvar[\"%s\"] = \"%s\"\n", i, newvar[i])
+}