I am trying to update a file the user is asked to enter the new reorder level (integer) if they do not require to update this field they press enter. The code below is what i am using, it works if the customer enters a number, if they enter through the program fails at the scanf. Is there a way to get around this.
printf("\nWhat is the reorder level?");
if(temp_s.reorderLevel != NULL)
(*new_s).reorderLevel = temp_s.reorderLevel;