From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/imio/imstats.x | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sys/imio/imstats.x (limited to 'sys/imio/imstats.x') diff --git a/sys/imio/imstats.x b/sys/imio/imstats.x new file mode 100644 index 00000000..4deb5096 --- /dev/null +++ b/sys/imio/imstats.x @@ -0,0 +1,24 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include +include +include + +# IMSTATS -- Get an IMIO option of type string. + +procedure imstats (im, option, outstr, maxch) + +pointer im # image descriptor +int option # imset option being queried +char outstr[ARB] # output string +int maxch + +begin + switch (option) { + case IM_IMAGENAME: + call strcpy (IM_NAME(im), outstr, maxch) + default: + call imerr (IM_NAME(im), SYS_IMSTATUNKPAR) + } +end -- cgit