use atoi function.