atoi
Converts a string to integer representation
#include <stdlib.h>
int atoi (
const char *ptr);
atoi returns the converted value.
The atoi function converts the string pointed to by ptr to int representation.
#include <stdlib.h> main () { int x; x=atoi("-289"); }