Code:
int ToBaseTen ( char value [256], int base, int l)
{
int result=0;
int ivalue=0;
int n=0;
int j=l-1;
char chold=0;
while (j>0)
{
chold=value[n];
ivalue=atoi(&chold);
result=result+(ivalue*pow(base,j));
++n;
--j;
}
return result;
}
thnx in advance

