From 59bf2ec15fd584ed0f0c7bf583bb94d0ea4170f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Tue, 19 Aug 2025 19:28:00 +0300 Subject: [PATCH] I am foo example --- ChangeLog | 2 ++ c-basic/foo.c | 7 +++++++ c-basic/foo.h | 6 ++++++ c-basic/main.c | 4 ++-- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 c-basic/foo.c create mode 100644 c-basic/foo.h diff --git a/ChangeLog b/ChangeLog index 3df4f74..cc9ad5f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2025-08-19 Mert Gör + * c-basic/main.c (main) : I am foo example written + * c-basic/main.c (main): starting again 2025-08-13 Mert Gör diff --git a/c-basic/foo.c b/c-basic/foo.c new file mode 100644 index 0000000..b99fb4f --- /dev/null +++ b/c-basic/foo.c @@ -0,0 +1,7 @@ +#include +#include "foo.h" + +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 29d5137..fcdb9aa 100644 --- a/c-basic/main.c +++ b/c-basic/main.c @@ -1,8 +1,8 @@ -#include +#include "foo.h" int main() { - printf("starting....\n"); + foo(); return 0;