itoa
void itoa(char *s, int n);
void VCPINTreverse(char *s);
//ENDH
/**************************************************
    emulates the itoa function

    convert a integer into a string

***************************************************/
void itoa(char *s, int n)
{
	long i, sign;

	if ((sign=n) <0) n=-n;
	i=0;
	do{
		s[i++]=n % 10 + '0';
	} while((n/=10)>0);
	if (sign<0) s[i++]='-';
	s[i]=0;
	VCPINTreverse(s);
}
/**************************************************************************/
# ifndef VCPINTREVERSE
# define VCPINTREVERSE 1
void VCPINTreverse(char *s)
{
	int c, i, j;
	for(i=0,j=StrLen(s)-1; i<j; i++,j--){
		c=s[i];
		s[i]=s[j];
		s[j]=c;
	}
}
# endif
/**************************************************************************/
