aboutsummaryrefslogtreecommitdiff
path: root/sys/imio/imps1.gx
blob: 9e225923e1b69ad650b7758dff552029b9af6ff9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<imhdr.h>

# IMPS1? -- Put a section to an apparently one dimensional image.

pointer procedure imps1$t (im, x1, x2)

pointer	im		# image header pointer
int	x1		# first column
int	x2		# last column

pointer	impgs$t(), impl1$t()

begin
	if (x1 == 1 && x2 == IM_LEN(im,1))
	    return (impl1$t (im))
	else
	    return (impgs$t (im, long(x1), long(x2), 1))
end