aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/photcal/mctable/mctrew.x
diff options
context:
space:
mode:
Diffstat (limited to 'noao/digiphot/photcal/mctable/mctrew.x')
-rw-r--r--noao/digiphot/photcal/mctable/mctrew.x20
1 files changed, 20 insertions, 0 deletions
diff --git a/noao/digiphot/photcal/mctable/mctrew.x b/noao/digiphot/photcal/mctable/mctrew.x
new file mode 100644
index 00000000..a7ad2ad5
--- /dev/null
+++ b/noao/digiphot/photcal/mctable/mctrew.x
@@ -0,0 +1,20 @@
+include "../lib/mctable.h"
+
+
+# MCT_REW - Rewinding the sequential get counters.
+
+procedure mct_rew (table)
+
+pointer table # table descriptor
+
+begin
+ # Check the pointer and magic number.
+ if (table == NULL)
+ call error (0, "mct_rew: Null table pointer")
+ if (MCT_MAGIC (table) != MAGIC)
+ call error (0, "mct_rew: Bad magic number")
+
+ # Clear get counters.
+ MCT_NGCOLS (table) = 0
+ MCT_NGROWS (table) = 0
+end