What does atoi() really do?

does it convert alpha to integers or does it test for integers?