Converting a string variable to an integer

Call:

string ivalue = atoi(string value);