diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/qpoe/qplenf.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/qpoe/qplenf.x')
-rw-r--r-- | sys/qpoe/qplenf.x | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/qpoe/qplenf.x b/sys/qpoe/qplenf.x new file mode 100644 index 00000000..c8e4539e --- /dev/null +++ b/sys/qpoe/qplenf.x @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "qpoe.h" + +# QP_LENF -- Return the length of the named parameter, i.e., the number of +# stored elements in the parameter value. NULL is returned if there is no +# value, or ERR if the parameter does not exist. + +int procedure qp_lenf (qp, param) + +pointer qp #I QPOE descriptor +char param[ARB] #I parameter name + +pointer sym +pointer qp_gpsym() + +begin + if (QP_ACTIVE(qp) == NO) + call qp_bind (qp) + + sym = qp_gpsym (qp, param) + if (sym == NULL) + return (ERR) + else + return (S_NELEM(sym)) +end |