I am foo example
This commit is contained in:
@@ -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
7
c-basic/foo.c
Normal 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
6
c-basic/foo.h
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#ifndef FOO_H
|
||||||
|
#define FOO_H
|
||||||
|
|
||||||
|
int foo();
|
||||||
|
|
||||||
|
#endif
|
@@ -1,8 +1,8 @@
|
|||||||
#include <stdio.h>
|
#include "foo.h"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
printf("starting....\n");
|
foo();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user