Rewrote most of the examine command.
[pspp-builds.git] / src / casefile.c
index 6d74e8e286ee3a8451b90db6951fb2f7599789b1..6033427c47354079a2863af36e4c041a52ce3f85 100644 (file)
@@ -90,6 +90,13 @@ struct casereader
     struct ccase c;                     /* Current case. */
   };
 
+/* Return the case number of the current case */
+unsigned long
+casereader_cnum(const struct casereader *r)
+{
+  return r->case_idx;
+}
+
 /* Doubly linked list of all casefiles. */
 static struct casefile *casefiles;