event_callback_init_c (ul_threaded)

	status.i4.v = event_callback_init_c(event_number.i4.v, event_type.i4.v,
					    callback_func.f.v, func_data.g.v,
					    handle.i1a.r, options.u4.v,

	This routine will create a callback for monitoring the occurrence
	of a clock event.  Use of this routine creates a separate thread for
	monitoring clock events.

	event_number	clock event number to monitor
			(constants are in 'tclk_events')
	event_type	type of clock event
			(CLOCK_TCLK -> TCLK event)
			(constants are in 'clib')
	callback_func	function to be called when the event is detected
			(called as follows:
			 callback_func(event_number.i4.v, event_type.i4.v,
				       clinks.u4.v, nanoseconds.u4.v,
	func_data	pointer to user data to be passed to the callback
			function (A value of NULL can be passed for this
			argument if it is not needed.)
	handle		null terminated ASCII handle to be used as an
			alternate means of identifying this callback
			(Note: If this argument is not needed, a value of
			 NULL can be passed for it.)
	options		event monitor options (not used)
	callback_id	returned callback ID
			(can be passed to event_callback_term_c)
			(Note: If this argument is not needed, a value of
			 NULL can be passed for it.)

	This function returns ACNET status values as follows:

	OK			success
	CLIB_INVARG		a value of NULL was passed for the
				callback function argument
	CLIB_MEMFAIL		failed in allocating dynamic memory
	CLIB_BUGCHK		error creating event monitor thread

	This function requires the following include files:

	cnsparam_h, cns_data_structs_h, ul_threaded_h:threadedlib_h, tclk_events_h, clib_h, acnet_errors_h

	Related functions:


	C/C++ usage:

	char	*handle = (char *) NULL;
	int	status;
	int	event_number = EVENT_TIMESTAMP_RESET;
	int	event_type = CLOCK_TCLK;
	int	callback_id;
	unsigned int	options = 0;
	void	*func_data = (void *) NULL;
	void	callback_func(int event_number, int event_type,
			      unsigned int clinks, unsigned int nanoseconds,
			      void *func_data);

	status = event_callback_init_c(event_number,event_type,callback_func,