get_task_name_c

	status.i4.v = get_task_name_c(slot.i4.v, name.i1a.r [,get_generic.i4.v])

	This routine will return the ASCII task name of the program
	running in a given console process slot.

	slot		process slot #
			(PA_SLOT -> PA primary application,
			 PB_SLOT -> PB primary application,
			 PC_SLOT -> PC primary application,
			 PD_SLOT -> PD primary application,
			 PE_SLOT -> PE primary application,
			 SA_SLOT -> SA secondary application,
			 SB_SLOT -> SB secondary application,
			 SC_SLOT -> SC secondary application,
			 SD_SLOT -> SD secondary application,
			 SE_SLOT -> SE secondary application,
			 ALARM_SLOT -> alarms task,
			 NONUSER_SLOT -> nonuser application)
	name		returned ASCII process name
			(PROCESS_NAME_LEN characters)
	[get_generic]	(TRUE -> return generic process name,
			 FALSE -> return actual process name (default))

	This function returns ACNET status values as follows:

	OK			success
	CBS_NO_SUCH		no process running in the requested slot

	This function requires the following include files:

	cnsparam_h, cbslib_h, acnet_errors_h

	Related functions:

	get_task_c, process_get_active,
	get_process_name, get_process_number, check_for_sa(_c), find_sa

	C/C++ usage:

	char	name[PROCESS_NAME_LEN];
	int	status;
	int	slot = PA_SLOT;
	int	get_generic = FALSE;

	status = get_task_name_c(slot,name,get_generic);