From 85bfd7e2e5cfc5cc00a10abc66eaf8bf4a741254 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 15 Sep 2018 15:45:52 -0700 Subject: read title from macro --- journal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/journal.c b/journal.c index 9feea10..851cf23 100644 --- a/journal.c +++ b/journal.c @@ -4,6 +4,7 @@ #include #include +#define TITLE "david's journal" #define ENTRY_DIR "entries" #define MAX_ENTRIES 1024 @@ -80,10 +81,10 @@ int main() "\n" "\n" "\n" - "david's journal\n" + ""TITLE"\n" "\n" "\n" - "

david's journal

\n"); + "

"TITLE"

\n"); for (int i = 0; i < num_entries; ++i) { print_entry(entries[i]); -- cgit v1.2.3-70-g09d2