summaryrefslogtreecommitdiff
path: root/ipl/procs/progary.icn
diff options
context:
space:
mode:
Diffstat (limited to 'ipl/procs/progary.icn')
-rw-r--r--ipl/procs/progary.icn31
1 files changed, 31 insertions, 0 deletions
diff --git a/ipl/procs/progary.icn b/ipl/procs/progary.icn
new file mode 100644
index 0000000..08213d2
--- /dev/null
+++ b/ipl/procs/progary.icn
@@ -0,0 +1,31 @@
+############################################################################
+#
+# File: progary.icn
+#
+# Subject: Procedure to place program in a array
+#
+# Author: Ralph E. Griswold
+#
+# Date: April 30, 1993
+#
+############################################################################
+#
+# This file is in the public domain.
+#
+############################################################################
+#
+# This procedure creates an array with one element for each program token.
+# The program is read from file. The initial value of each element is value.
+#
+############################################################################
+
+procedure progary(file, value)
+ local A
+
+ A := []
+
+ while put(A, list(*read(file), value))
+
+ return A
+
+end