diff options
Diffstat (limited to 'noao/digiphot/photcal/mctable/mctncols.x')
-rw-r--r-- | noao/digiphot/photcal/mctable/mctncols.x | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/noao/digiphot/photcal/mctable/mctncols.x b/noao/digiphot/photcal/mctable/mctncols.x new file mode 100644 index 00000000..65baea8d --- /dev/null +++ b/noao/digiphot/photcal/mctable/mctncols.x @@ -0,0 +1,20 @@ +include "../lib/mctable.h" + + +# MCT_NCOLS - Return the highest column number for the highest row, entered +# into the table + +int procedure mct_ncols (table) + +pointer table # table descriptor + +begin + # Check the pointer and magic number. + if (table == NULL) + call error (0, "mct_ncols: Null table pointer") + if (MCT_MAGIC (table) != MAGIC) + call error (0, "mct_ncols: Bad magic number") + + # Return column counter. + return (MCT_NPCOLS (table)) +end |