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

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() {
printf("starting....\n");
foo();
return 0;