Convert a string to an integer using scanf and sscanf