diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/gio/stdgraph/stgoutstr.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/stdgraph/stgoutstr.x')
-rw-r--r-- | sys/gio/stdgraph/stgoutstr.x | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/gio/stdgraph/stgoutstr.x b/sys/gio/stdgraph/stgoutstr.x new file mode 100644 index 00000000..2d854e75 --- /dev/null +++ b/sys/gio/stdgraph/stgoutstr.x @@ -0,0 +1,30 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "stdgraph.h" + +# STG_OUTSTR -- Format and output a control sequence containing a string +# string argument to the output device. + +procedure stg_outstr (cap, strval) + +char cap[ARB] #I graphcap capability name +char strval[ARB] #I string data + +pointer sp, fmt, ctrl +include "stdgraph.com" +int ttygets() +errchk ttygets + +begin + call smark (sp) + call salloc (fmt, SZ_LINE, TY_CHAR) + call salloc (ctrl, SZ_LINE, TY_CHAR) + + if (ttygets (g_tty, cap, Memc[fmt], SZ_LINE) > 0) { + call sprintf (Memc[ctrl], SZ_LINE, Memc[fmt]) + call pargstr (strval) + call ttyputs (g_out, g_tty, Memc[ctrl], 1) + } + + call sfree (sp) +end |