int i; char str[20]; char str2[22]; intn pos, cnt; PA_Block buff;
int i;                       char str[20];                char str2[22];               intn pos;                    intn cnt;                    PA_Block buff;
lo_ValueToAlpha(int32 value, Bool large, intn *len_ptr){	int i;	char str[20];	char str2[22];	intn pos, cnt;	PA_Block buff;	char *bptr;	char base;	*len_ptr = 0;	if (large != FALSE)	{		base = 'A';	}	else	{		base = 'a';	}	for (i=0; i<20; i++)	{		str[i] = (char)0;	}	while (value > 26)	{		pos = 1;		str[pos] = (char)((int)str[pos] + 1);		cnt = (int)str[pos];		while ((cnt > 26)&&(pos < 19))		{			str[pos] = (char)0;			pos++;			str[pos] = (char)((int)str[pos] + 1);			cnt = (int)str[pos];		}		if ((pos == 20)&&(cnt > 26))		{			str[pos] = (char)0;		}		value -= 26;	}	str[0] = (char)value;	pos = 0;	while ((int)str[pos] != 0)	{		pos++;	}	if (pos == 0)	{		XP_STRCPY(str2, " .");	}	else	{		cnt = 0;		for (i=pos; i>0; i--)		{			str2[cnt] = (char)(base + (int)str[i - 1] - 1);			cnt++;		}		str2[cnt] = '.';		str2[cnt + 1] = '\0';	}	*len_ptr = XP_STRLEN(str2);	buff = PA_ALLOC(*len_ptr + 1);	if (buff != NULL)	{		PA_LOCK(bptr, char *, buff);		XP_STRCPY(bptr, str2);		PA_UNLOCK(buff);	}	return(buff);}