I am making a program that needs to receive the following input:
{Time1 Time2 Appointment} as {hour1:minute1 hour2:minute2 Appointment}
The "Appointment" is a useless string input and i would like to ignore it
scanf("%d:%d %d:%d",&hour1,&minute1,&hour2,&minute2);
I am able to get the hours and minutes but after that i can't use "scanf" again, how can i just ignore the "Appointment" input?