im sure this has been answered before on here, however after searching using the keyword 'convert' and going through half an hours worth of replies my question wasnt answered.
im trying to convert a char array ( of numbers like
[7][2][6][4][5][6]) to one whole integer like 726456 (decimal)
(which have been converted from ascii to dec)
so i can perform maths calculations on the integers then output result to screen.
is there an easier way other than looping through each element, adding the column, if greater than 10, carry etc
atoi will not work as i just get zero because it expects ascii as input, is there a version of atoi for my question?
luigi