console_task_name_c

	status.i4.v = console_task_name_c(generic_name.i1a.r, slot.i4.v,
					  console_number.i4.v, task_name.i1a.r)

	This function returns the task name that a given generic task would
	have if it was running on a given console in a given slot.

	generic_name	generic task name to be converted (PAnnnn or SAnnnn)
			(PROCESS_NAME_LEN characters)
	slot		application program slot number. By
			convention slots are used in the following manner:
			(PA_SLOT -> primary application PA,
			 PB_SLOT -> primary application PB,
			 PC_SLOT -> primary application PC,
			 PD_SLOT -> primary application PD,
			 PE_SLOT -> primary application PE,
			 SA_SLOT -> secondary application SA,
			 SB_SLOT -> secondary application SB,
			 SC_SLOT -> secondary application SC,
			 SD_SLOT -> secondary application SD,
			 SE_SLOT -> secondary application SE,
			 ALARM_SLOT -> reserved for alarm system,
			 NONUSER_SLOT -> nonuser application (no display))
	console_number	console number (If a value of LOCAL is passed,
			the caller's console number is used.)
	task_name	returned task name (PROCESS_NAME_LEN characters)

	This function returns ACNET status values as follows:

	OK			success
	CLIB_INVARG		invalid process name passed

	This function requires the following include files:

	cnsparam_h, clib_h, nodedefs_h, acnet_errors_h

	Related functions:

	ctname, chgpgm(_c), acnet_chgpgm, find_program_c, fndgen, myconsole

	C/C++ usage:

	static const char	generic_name[PROCESS_NAME_LEN+1] = "PA0052";
	char	task_name[PROCESS_NAME_LEN];
	int	status;
	int	slot = PB_SLOT;
	int	console_number = 101;

	status = console_task_name_c(generic_name,slot,console_number,
				     task_name);