In effetti dimenticavo, qui c'è un codice preso dal forum che ho usato per convertire delle stringhe in int ![]()
int stoi(String text)
{
char temp[20];
text.toCharArray(temp, 19);
int x = atoi(temp);
if (x == 0 && text != "0")
{
x = -1;
}
return x;
}