From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- noao/onedspec/ecidentify/ecgetim.x | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 noao/onedspec/ecidentify/ecgetim.x (limited to 'noao/onedspec/ecidentify/ecgetim.x') diff --git a/noao/onedspec/ecidentify/ecgetim.x b/noao/onedspec/ecidentify/ecgetim.x new file mode 100644 index 00000000..cbcb244e --- /dev/null +++ b/noao/onedspec/ecidentify/ecgetim.x @@ -0,0 +1,17 @@ +# EC_GETIM -- Get next image name with standard image extensions removed. + +int procedure ec_getim (list, image, maxchar) + +int list # Image list +char image[maxchar] # Image name +int maxchar # Maximum number of chars in image name + +int stat, imtgetim() + +begin + stat = imtgetim (list, image, maxchar) + if (stat != EOF) + call xt_imroot (image, image, maxchar) + + return (stat) +end -- cgit