aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gmprintf.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/gio/gmprintf.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/gmprintf.x')
-rw-r--r--sys/gio/gmprintf.x27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/gio/gmprintf.x b/sys/gio/gmprintf.x
new file mode 100644
index 00000000..9353b483
--- /dev/null
+++ b/sys/gio/gmprintf.x
@@ -0,0 +1,27 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# GMPRINTF -- Formatted write a string value to a UI (user interface)
+# parameter.
+#
+# NOTE - I don't think this code works yet. Don't use it, use gmsg.
+
+procedure gmprintf (gp, object, format)
+
+pointer gp #I graphics descriptor
+char object[ARB] #I object name
+char format[ARB] #I print format
+
+pointer sp, fmt
+
+begin
+ call smark (sp)
+ call salloc (fmt, SZ_LINE, TY_CHAR)
+
+ call sprintf (Memc[fmt], SZ_LINE, "\031%s %s\035\037")
+ call pargstr (object)
+ call pargstr (format)
+
+ call flush (STDOUT)
+ call printf (Memc[fmt])
+ call sfree (sp)
+end