Aktualizovat „du3/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-03-26 22:13:28 +00:00
parent f2a6db5248
commit badf37c546

View File

@ -23,7 +23,7 @@ int main()
int hour = 0, min = 0, secs = 0; int hour = 0, min = 0, secs = 0;
fgets(dateStr, 11, stdin); fgets(dateStr, 11, stdin);
sscanf(string , "%d:%d:%d" , &hour,&min,&secs); sscanf(dateStr , "%d:%d:%d" , &hour,&min,&secs);
if(!ValidateTime(hour,min,sec)){ if(!ValidateTime(hour,min,sec)){
printf("Nespravny datum\n"); printf("Nespravny datum\n");
} }