Aktualizovat „du3/program.c“
This commit is contained in:
parent
badf37c546
commit
dac272c24f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user