I am try to read in some data with an id followed by firstname lastname from a text file and I cannot seem to get scanf to allow the space.
input may look like: 123456 FirstName LastName
scanf("%d%s", &id, fullName) doesn't work because it cuts off at the space between first and last name. I would like to have 'first last' in one string (preferrably without concat because there are instances where the last name is not included).