aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/clprintf.x
blob: d456c0a5246e6456166f2e505d79441095a8a4ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<printf.h>

# CLPRINTF -- Format and output a string to the CL to set the value of the
# named (string or struct type) parameter.  For example, to set a cursor
# struct parameter,  "clprintf (param, "%8.4f %8.4f %c")" ...

procedure clprintf (param, format_string)

char	param[ARB], format_string[ARB]

begin
	call putline (CLOUT, param)
	call putline (CLOUT, " = \"")
	call fprntf (CLOUT, format_string, CL_PARAM)
end