get_465_device

	status.i4.v = get_465_device(root_names.ch.d, which_devices.i4a.r,
				     device_indices.i4a.r, errors.i2a.r
				     [,num_devices.i4.v] [,same_type.i4.v])

	This routine returns the device index for the requested database
	device on a C465/6/7/8/0 card.

	root_names	root name of family
			(dio_get_terse_name_length characters per device)
	which_devices	requested device or array of devices
			(C465_MAIN -> main parameter page device,
			 C465_TIME -> time table device,
			 C465_HI -> H(I) table device,
			 C465_MAP -> map device,
			 C465_SF -> scale factor device,
			 C465_VERSION -> version device,
			 C465_REF -> reference device,
			 C465_GI_ABSC -> G(I) current table device,
			 C465_HI_ABSC -> H(I) current table device,
			 C465_CLOCK -> clock event table device,
			 C465_MDAT -> MDAT selection device,
			 C465_GI -> G(I) table device)
			(If a negative value is passed for this
			 argument, it's absolute value will be used
			 for every device requested.  This feature
			 cannot be used for type C465_MAIN.)
	device_indices	returned device index or array of device indices
	errors		returned device error or array of errors
	[num_devices]	number of devices (default is 1)
	[same_type]	flag whether or not all entries in
			"which_device" are the same
			(TRUE -> use first value in "which_device"
				 for every device requested,
			 FALSE -> each entry in "which_device" will
				  be treated as unique (default))

	This function returns ACNET status values as follows:

	OK			success
	CBS_MEMFAIL		dynamic memory allocation failure
	CBS_INVARG		invalid root name (no blanks)
	CBS_INVSIZ		invalid family size (database entry error)
	CBS_INVTYP		device is not a C465 module
	DIO_NO_SUCH		family device not found
	DIO_xxx			error retrieving database info
	negative value		other ACNET format error
	positive value		number of devices in error

	This function requires the following include files:

	ul_cbsaux_h:auxlib_device_h, acnet_errors_h

	Related functions:

	get_465_family, get_465_type, c465_ft_frequency_c,
	c465_ft_frequency_list_c, c465_find_level_c, c465_find_level_list_c,
	c465_get_table_c, c465_get_table_list_c, find_time_slot_c,
	find_time_slot_list_c, dio_get_terse_name_length,
	dio_set_terse_name_length_c

	C/C++ usage:

	static const char	root_names[NUM_DEVICES*DEVICE_TERSE_NAME_LEN+1] =
	"T:QF    T:QD    ";
	short	errors[NUM_DEVICES];
	int	status;
	static const int	which_devices[NUM_DEVICES] =
	{C465_TIME, C465_TIME};
	int	device_indices[NUM_DEVICES];
	int	num_devices = NUM_DEVICES;
	int	same_type = FALSE;

	status = get_465_device(root_names,which_devices,device_indices,
				errors,num_devices,same_type);