aboutsummaryrefslogtreecommitdiff
path: root/sys/imfort/db/imputl.x
blob: 3af988a952eb6b0b1343fccc8d726291b3b2b045 (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
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# IMPUTL -- Put an image header parameter of type long integer.

procedure imputl (im, key, lval)

pointer	im			# image descriptor
char	key[ARB]		# parameter to be set
long	lval			# parameter value

int	junk
pointer	sp, sval
int	ltoc()

begin
	call smark (sp)
	call salloc (sval, SZ_FNAME, TY_CHAR)

	junk = ltoc (lval, Memc[sval], SZ_FNAME)
	call impstr (im, key, Memc[sval])

	call sfree (sp)
end