From 64b5cb88ae74a87ab550aef77032be4be9c6e068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Mon, 6 Oct 2025 23:56:54 +0300 Subject: [PATCH] =?UTF-8?q?foo=20=C3=B6rne=C4=9Fi=20yaz=C4=B1ld=C4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c-basic/foo.c | 7 +++++++ c-basic/foo.h | 6 ++++++ c-basic/main.c | 8 ++++---- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 c-basic/foo.c create mode 100644 c-basic/foo.h diff --git a/c-basic/foo.c b/c-basic/foo.c new file mode 100644 index 0000000..af54fe7 --- /dev/null +++ b/c-basic/foo.c @@ -0,0 +1,7 @@ +#include + +int foo() { + printf("I am foo\n"); + + return 0; +} diff --git a/c-basic/foo.h b/c-basic/foo.h new file mode 100644 index 0000000..4ec598a --- /dev/null +++ b/c-basic/foo.h @@ -0,0 +1,6 @@ +#ifndef FOO_H +#define FOO_H + +int foo(); + +#endif diff --git a/c-basic/main.c b/c-basic/main.c index 2f1ce6c..450c2ea 100644 --- a/c-basic/main.c +++ b/c-basic/main.c @@ -1,8 +1,8 @@ #include +#include "foo.h" int main() { - - printf("hello world year 2025 !\n"); - - return 0; + foo(); + + return 0; }