From 49b6f69dfab89f5c25a61e4fe5d74d72ee8cda8d Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 26 Mar 2020 22:23:41 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu3/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du3/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;