aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gstats.x
blob: 14fd7c354a27e70ae85a4b17a5001197c91a66c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<syserr.h>
include	<gset.h>
include	<gio.h>

# GSTATS -- Get the value of a string valued GIO parameter.

int procedure gstats (gp, param, outstr, maxch)

pointer	gp			# graphics descriptor
int	param			# parmeter to be set
char	outstr[ARB]		# output string
int	maxch
int	gstrcpy()

int	i, value
pointer	p[2]

begin
	p[1] = GP_XAP(gp)
	p[2] = GP_XAP(gp)

	switch (param) {
	case G_XTICKFORMAT:
	    return (gstrcpy (GL_TICKFORMAT(p[1]), value, maxch))
	case G_YTICKFORMAT:
	    return (gstrcpy (GL_TICKFORMAT(p[2]), value, maxch))
	case G_TICKFORMAT:
	    do i = 1, 2
		return (gstrcpy (GL_TICKFORMAT(p[i]), value, maxch))
	default:
	    call syserr (SYS_GSTAT)
	}
end