diff --git a/du3/program.c b/du3/program.c index c5c1e35..dd1040c 100644 --- a/du3/program.c +++ b/du3/program.c @@ -45,12 +45,12 @@ int main() sscanf(dateStr , "%d.%d.%d" , &dd,&mm,&yy); if(!ValidateTime(dd,mm,yy)){ printf("Nespravny datum\n"); - return 1; + return 0; } char* res = strptime(dateStr, "%d.%m.%Y", &t); if (res == NULL) { - printf("error: can't parse date!\n"); - return 1; + printf("Nespravny datum\n"); + return 0; } t.tm_mday += 7;