I tried to use itoa, but it seems that the platform uri does not accept, somebody could give me another way to convert from string to int
Here is the code I tried
itoa(n1, p1, 10);
I tried to use itoa, but it seems that the platform uri does not accept, somebody could give me another way to convert from string to int
Here is the code I tried
itoa(n1, p1, 10);
If your idea is to convert string to int, you should use atoi :
char num[10] = "100";
int valor = atoi(num);
detail: In C there are specific functions, according to input and output data type: