From 38b465cdadd7f0a3d6efe878f33182193a06056c Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Sun, 10 Apr 2022 14:16:11 -0400 Subject: [PATCH] do the funky (add libs example) --- lib/constants.h | 1 + src/main.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 lib/constants.h diff --git a/lib/constants.h b/lib/constants.h new file mode 100644 index 0000000..6e87231 --- /dev/null +++ b/lib/constants.h @@ -0,0 +1 @@ +char* HELLO = "Hello, world!"; diff --git a/src/main.c b/src/main.c index 329858e..a507bd9 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,7 @@ #include +#include "constants.h" int main(int argc, char* argv[]) { - printf("Hello, world!\n"); + printf("%s\n", HELLO); return 0; }