aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-25 12:02:51 +0200
committerAdam <adammegarules1@gmail.com>2026-07-25 12:02:51 +0200
commitf1e4196f494d4c3f91d9c8f300dbfb8ba8419e2e (patch)
treef2f42b79819bde2de359ba756e679f993ab330ab /src
init
Diffstat (limited to 'src')
-rw-r--r--src/Hello.c6
-rw-r--r--src/Hello.h14
-rw-r--r--src/Main.cpp8
3 files changed, 28 insertions, 0 deletions
diff --git a/src/Hello.c b/src/Hello.c
new file mode 100644
index 0000000..7cd1d70
--- /dev/null
+++ b/src/Hello.c
@@ -0,0 +1,6 @@
+#include "Hello.h"
+#include <stdio.h>
+
+void printMessage(const char* message) {
+ printf("%s", message);
+}
diff --git a/src/Hello.h b/src/Hello.h
new file mode 100644
index 0000000..1ec1f96
--- /dev/null
+++ b/src/Hello.h
@@ -0,0 +1,14 @@
+#ifndef SRC_HELLO_H_
+#define SRC_HELLO_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void printMessage(const char* message);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* SRC_HELLO_H_ */
diff --git a/src/Main.cpp b/src/Main.cpp
new file mode 100644
index 0000000..3348d2a
--- /dev/null
+++ b/src/Main.cpp
@@ -0,0 +1,8 @@
+#include <cstdlib>
+
+#include "Hello.h"
+
+int main(){
+ printMessage("Hello world\n");
+ return EXIT_SUCCESS;
+}