blob: 06c688c945fc8654b38178c7964906b2ebb20989 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
include "../lib/mctable.h"
# MCT_NROWS - Return the highest row number entered into the table
int procedure mct_nrows (table)
pointer table # table descriptor
begin
# Check pointer and magic number.
if (table == NULL)
call error (0, "mct_nrows: Null table pointer")
if (MCT_MAGIC (table) != MAGIC)
call error (0, "mct_nrows: Bad magic number")
# Return row counter.
return (MCT_NPROWS (table))
end
|