From 9ed76c76738716c283246f84c2ce9b20a2f7b9e5 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 26 Mar 2020 20:14:42 +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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/du3/program.c b/du3/program.c index 1f2d6f1..3d62d1b 100644 --- a/du3/program.c +++ b/du3/program.c @@ -16,9 +16,8 @@ int main() t.tm_mday += 7; - strftime(dateStr, sizeof(dateStr), "%d.%m.%Y", &t); + printf("%d.%d.%d", t.tm_mday, t.tm_mon + 1, t.tm_year + 1900); - printf("\n%s", dateStr); exit(EXIT_SUCCESS); return 0;