Aktualizovat „du3/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-03-26 22:14:07 +00:00
parent badf37c546
commit dac272c24f

View File

@ -24,7 +24,7 @@ int main()
fgets(dateStr, 11, stdin);
sscanf(dateStr , "%d:%d:%d" , &hour,&min,&secs);
if(!ValidateTime(hour,min,sec)){
if(!ValidateTime(hour,min,secs)){
printf("Nespravny datum\n");
}
char* res = strptime(dateStr, "%d.%m.%Y", &t);