aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/photcal/mctable/mctncols.x
blob: 65baea8d8150e1596073b0b24b314dfa1e181a49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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