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 /pkg/xtools/catquery/cqnqpars.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/xtools/catquery/cqnqpars.x')
-rw-r--r-- | pkg/xtools/catquery/cqnqpars.x | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/xtools/catquery/cqnqpars.x b/pkg/xtools/catquery/cqnqpars.x new file mode 100644 index 00000000..d7769925 --- /dev/null +++ b/pkg/xtools/catquery/cqnqpars.x @@ -0,0 +1,18 @@ +include "cqdef.h" + + +# CQ_NQPARS -- Return the number of query parameters. Do we really need +# a special routine ? + +int procedure cq_nqpars (cq) + +pointer cq #I the catalog descriptor + +begin + if (CQ_CAT(cq) == NULL) + return (0) + if (CQ_CATNO(cq) < 1 || CQ_CATNO(cq) > CQ_NRECS(cq)) + return (0) + + return (CQ_NQPARS(CQ_CAT(cq))) +end |