I am foo example

This commit is contained in:
2025-08-19 19:28:00 +03:00
parent 19720d5156
commit 59bf2ec15f
4 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
2025-08-19 Mert Gör <hwpplayer1@masscollabs> 2025-08-19 Mert Gör <hwpplayer1@masscollabs>
* c-basic/main.c (main) : I am foo example written
* c-basic/main.c (main): starting again * c-basic/main.c (main): starting again
2025-08-13 Mert Gör <hwpplayer1@masscollabs> 2025-08-13 Mert Gör <hwpplayer1@masscollabs>

7
c-basic/foo.c Normal file
View File

@@ -0,0 +1,7 @@
#include <stdio.h>
#include "foo.h"
int foo() {
printf("I am foo\n");
return 0;
}

6
c-basic/foo.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef FOO_H
#define FOO_H
int foo();
#endif

View File

@@ -1,8 +1,8 @@
#include <stdio.h> #include "foo.h"
int main() { int main() {
printf("starting....\n"); foo();
return 0; return 0;