Added feature foo to the project

This commit is contained in:
Stephan Rehfeld 2025-10-21 15:12:22 +02:00
parent f20017067f
commit 23ddea6263
3 changed files with 17 additions and 0 deletions

7
foo.c Normal file
View File

@ -0,0 +1,7 @@
#include <stdio.h>
#include "foo.h"
void foo(void) {
puts("Hello World from foo()");
}

6
foo.h Normal file
View File

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

4
main.c
View File

@ -1,8 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
#include "foo.h"
int main(void) {
puts("Hello World");
foo();
return EXIT_SUCCESS;
}