From 1a6c5141709141c315bdf374d01e950a8b50204b Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Tue, 9 Jul 2019 14:11:03 +0200 Subject: [PATCH] codebase consolidated --- inc/def.h | 6 ++++++ inc/test.h | 6 ------ src/main.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 inc/def.h delete mode 100644 inc/test.h diff --git a/inc/def.h b/inc/def.h new file mode 100644 index 0000000..c4b2dc5 --- /dev/null +++ b/inc/def.h @@ -0,0 +1,6 @@ +#ifndef __INC_DEF_H__ +#define __INC_DEF_H__ + +#define HELLO "Hello world!" + +#endif // __INC_DEF_H__ \ No newline at end of file diff --git a/inc/test.h b/inc/test.h deleted file mode 100644 index 189a00b..0000000 --- a/inc/test.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __INC_TEST_H__ -#define __INC_TEST_H__ - - - -#endif // __INC_TEST_H__ \ No newline at end of file diff --git a/src/main.c b/src/main.c index 31e233f..6af738d 100644 --- a/src/main.c +++ b/src/main.c @@ -1,10 +1,10 @@ #include -#include +#include int main(int argc, char *argv[]) { - printf("Hello World\n"); + printf("%s\n", HELLO); return 0; }