aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gmprintf.x
diff options
context:
space:
mode:
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