use sscanf to take the place of sscanf_s