status.i4.v = dio_madc_num_channels_c(madc_number.i4.v, node.i4.v,

	This routine returns the number of channels for an MADC.

	madc_number	MADC index number
	node		MADC front end node (constants are in 'nodedefs')
	num_channels	returned number of MADC channels
	[max_channel]	returned maximum channel in use
			(default is NULL)

	This function returns status values as follows:

	OK			success
	DIO_BADARG		unsupported front end node
	DIO_MEMFAIL		memory allocation failure
	DIO_NO_SUCH		MADC doesn't exist
	SQL_xxx			error reading MADC channel info

	This function requires the following include files:

	nodedefs_h, diolib_h, acnet_errors_h

	Related functions:

	dio_madc_location_c, dio_device_madc_location_c, dio_madc_number_c,
	dio_madc_clock_events_c, dio_madc_list_info_c,
	dio_madc_num_available_clock_levels_c, dio_madc_num_available_lists_c,
	dio_madc_num_available_plot_channels_c, dio_madc_plot_channel_info_c

	C/C++ usage:

	int	status;
	int	madc_number = 1;
	int	node = MI3;
	int	num_channels;
	int	max_channel;

	status = dio_madc_num_channels_c(madc_number,node,&num_channels,