status.i4.v = bpm_to_crate_and_channel_c(detector.ch.d,

	This routine retrieves BPM detector crate and channel values for
	a detector.  A value of NULL can be passed for any returned
	arguments that are not needed.

	detector	null-terminated ASCII detector name
	crate_name	ASCII crate name (BPM_CRATE_NAME_LEN + 1 characters)
	crate_number	crate index (starts at 0)
	channel_number	channel number

	This function returns ACNET status values as follows:

	OK			success
	CBS_NO_SUCH		no such detector name exists
	SQL_xxx			database access error

	This function requires the following include files:

	ul_cbsaux/bpmuti.h, acnet_errors_h

	Related functions:

	bpm_get_crates_and_channels, bpm_crate_info_c, bpm_machine_c,
	bpm_get_names, bpm_query, bpm_name_to_index_c, bpm_get_offsets,
	bpm_get_locations, blm_get_locations, bpm_get_data_c,

	C/C++ usage:

	static const char	detector[] = "I:HP100";
	char	crate_name[BPM_CRATE_NAME_LEN+1];
	int	status;
	int	crate_number;
	int	channel_number;

	status = bpm_machine_c(BPM_TEVATRON);

	status = bpm_to_crate_and_channel_c(detector,crate_name,&crate_number,