How to compare calendar time with a given time from keyboard
Hallo to all.
I'm trying to write a console program doing the followings:
Code:
int main(void)
{
int hour, min;
printf("Set the time (like 12:00)");
scanf("%d:%d", &hour, &min);
}
After that, i would like to compare the given time with calendar time and when the calendar time reaches the given time, then a function to be executed.
My main problem is to convert given time to a type in order to compare with calendar time.
Thanks in advance
Saik