dio_users_monitoring_alarm_c

	status.i4.v = dio_users_monitoring_alarm_c(device_index.i4.v,
						   alarm_type.i4.v,
						   max_return.i4.v,
						   num_users.i4.r,
						   user_names.i1a.r)

	This routine returns the users who are monitoring an alarm.

	device_index	device index
	alarm_type	desired alarm type
			(DIO_ANALOG -> analog alarm,
			 DIO_DIGITAL -> digital alarm)
	max_return	maximum number of user names to return
	num_users	returned number of users monitoring this alarm
	user_names	returned names of user monitoring this alarm
			(allow USER_NAME_LEN + 1 characters per entry)
			(A value of NULL can be passed for this argument
			 if the user names are not needed.)

	This function returns ACNET status values as follows:

	OK			success
	DIO_BADARG		invalid alarm type passed
	SQL_xxx			error retrieving alarm monitor users

	This function requires the following include files:

	diolib_h, acnet_errors_h

	Related functions:

	dio_alarms_monitored_by_user_c

	C/C++ usage:

	char	user_names[MAX_RETURN][USER_NAME_LEN+1];
	int	status;
	int	device_index = 27235;
	int	alarm_type = DIO_ANALOG;
	int	max_return = MAX_RETURN;
	int	num_users;

	status = dio_users_monitoring_alarm_c(device_index,alarm_type,
					      max_return,&num_users,
					      (char *) user_names);