summary refs log tree commit diff stats
path: root/c/hello-world/src
diff options
context:
space:
mode:
Diffstat (limited to 'c/hello-world/src')
-rw-r--r--c/hello-world/src/hello_world.c5
-rw-r--r--c/hello-world/src/hello_world.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/c/hello-world/src/hello_world.c b/c/hello-world/src/hello_world.c
new file mode 100644
index 0000000..6a108d3
--- /dev/null
+++ b/c/hello-world/src/hello_world.c
@@ -0,0 +1,5 @@
+#include "hello_world.h"
+
+const char *hello(void) {
+   return "Hello, World!";
+}
diff --git a/c/hello-world/src/hello_world.h b/c/hello-world/src/hello_world.h
new file mode 100644
index 0000000..e553b80
--- /dev/null
+++ b/c/hello-world/src/hello_world.h
@@ -0,0 +1,6 @@
+#ifndef HELLO_WORLD_H
+#define HELLO_WORLD_H
+
+const char *hello(void);
+
+#endif