diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/imio/imgsect.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/imio/imgsect.x')
-rw-r--r-- | sys/imio/imgsect.x | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/imio/imgsect.x b/sys/imio/imgsect.x new file mode 100644 index 00000000..c41fa1b9 --- /dev/null +++ b/sys/imio/imgsect.x @@ -0,0 +1,23 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# IMGSECTION -- Get the image section field from an image specifcation. + +procedure imgsection (imspec, section, maxch) + +char imspec[ARB] # full image specifcation +char section[ARB] # receives image section +int maxch + +int cl_index, cl_size +pointer sp, cluster, ksection + +begin + call smark (sp) + call salloc (cluster, SZ_PATHNAME, TY_CHAR) + call salloc (ksection, SZ_FNAME, TY_CHAR) + + call imparse (imspec, Memc[cluster], SZ_PATHNAME, + Memc[ksection], SZ_FNAME, section, maxch, cl_index, cl_size) + + call sfree (sp) +end |