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;