diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /noao/digiphot/photcal/mctable/mctmaxcol.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'noao/digiphot/photcal/mctable/mctmaxcol.x')
-rw-r--r-- | noao/digiphot/photcal/mctable/mctmaxcol.x | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/noao/digiphot/photcal/mctable/mctmaxcol.x b/noao/digiphot/photcal/mctable/mctmaxcol.x new file mode 100644 index 00000000..74f341ae --- /dev/null +++ b/noao/digiphot/photcal/mctable/mctmaxcol.x @@ -0,0 +1,19 @@ +include "../lib/mctable.h" + + +# MCT_MAXCOL - Return the maximum number of columns in the table. + +int procedure mct_maxcol (table) + +pointer table # table descriptor + +begin + # Check pointer and magic number + if (table == NULL) + call error (0, "mct_maxcol: Null table pointer") + if (MCT_MAGIC (table) != MAGIC) + call error (0, "mct_maxcol: Bad magic number") + + # Return max number of columns + return (MCT_MAXCOL (table)) +end |