Converts given string to int.
string to convert.
The int value of str on success, 0 on failure.
See Implementation
Converts given string to int.