From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/gio/gmprintf.x | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sys/gio/gmprintf.x (limited to 'sys/gio/gmprintf.x') 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 -- cgit