/* Convert an iucv userId to its printable form (strip whitespace at end). */
static char* netiucv_printname(char *name)
/* Convert an iucv userId to its printable form (strip whitespace at end). */
static char* netiucv_printname(char *name)
{
	static char tmp[9];
	char *p = tmp;
	memcpy(tmp, name, 8);
	tmp[8] = '\0';
	while (*p && (!isspace(*p)))
		p++;
	*p = '\0';
	return tmp;
}