1
Convert a string
for an integer with the function atoi()
it’s easy, it’s not even?
However, when I use the function atoi()
to convert a character to an entire program that is running time simply ends up crashing.
What would be the best way to transform a character (e.g., '1') into an integer (e.g.:1)?
https://answall.com/questions/3760/o-que-acontecem-uma-convers%C3%A3o-de-um-char-para-um-int
– Marcelo Batista