1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
# IMGCLUSTER -- Get the cluster name of an image, i.e., the name of the cluster
# to which the image belongs, minus the cluster index and image section, if any.
procedure imgcluster (imspec, cluster, maxch)
char imspec[ARB] # full image specification
char cluster[ARB] # receives root image name
int maxch
int cl_index, cl_size
pointer sp, ksection, section
begin
call smark (sp)
call salloc (ksection, SZ_FNAME, TY_CHAR)
call salloc (section, SZ_FNAME, TY_CHAR)
call imparse (imspec, cluster, maxch, Memc[ksection], SZ_FNAME,
Memc[section], SZ_FNAME, cl_index, cl_size)
call sfree (sp)
end
|