aboutsummaryrefslogtreecommitdiff
path: root/sys/imio/db/imgetl.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/imio/db/imgetl.x')
-rw-r--r--sys/imio/db/imgetl.x19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/imio/db/imgetl.x b/sys/imio/db/imgetl.x
new file mode 100644
index 00000000..817715c0
--- /dev/null
+++ b/sys/imio/db/imgetl.x
@@ -0,0 +1,19 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# IMGETL -- Get an image header parameter of type long integer.
+
+long procedure imgetl (im, key)
+
+pointer im # image descriptor
+char key[ARB] # parameter to be returned
+
+double dval, imgetd()
+errchk imgetd
+
+begin
+ dval = imgetd (im, key)
+ if (IS_INDEFD(dval))
+ return (INDEFL)
+ else
+ return (nint (dval))
+end