From f08d6c488f0c07736048532e946fe9330eb422c3 Mon Sep 17 00:00:00 2001 From: luca0N! <63941044+luca0N@users.noreply.github.com> Date: Mon, 11 May 2020 13:35:29 -0300 Subject: [PATCH] Merged license defines --- about.h | 5 +---- main.c | 6 ++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/about.h b/about.h index 25f877b..62882f4 100644 --- a/about.h +++ b/about.h @@ -20,10 +20,7 @@ #ifndef ABOUT_DEF #define ABOUT_DEF -#define LICENSE_0 "limpador do luca0N! 3 Copyright (C) 2020 luca0N!" -#define LICENSE_1 "This program comes with ABSOLUTELY NO WARRANTY; for details type `w'." -#define LICENSE_2 "This is free software, and you are welcome to redistribute it" -#define LICENSE_3 "under certain conditions; type `c' for details." +#define LICENSE "limpador do luca0N! 3 Copyright (C) 2020 luca0N!\nThis program comes with ABSOLUTELY NO WARRANTY; for details type `w'.\nThis is free software, and you are welcome to redistribute it\nunder certain conditions; type `c' for details." #define PROGRAM_NAME "limpador do luca0N!" #define PROGRAM_SEASON 3 diff --git a/main.c b/main.c index 738ce66..1df56b0 100644 --- a/main.c +++ b/main.c @@ -23,15 +23,13 @@ // #include "colors.h" #include +#include #include #include int printLicense(int full){ if (full == 0) { - printf("%s\n", LICENSE_0); - printf("%s\n", LICENSE_1); - printf("%s\n", LICENSE_2); - printf("%s\n", LICENSE_3); + printf("%s\n", LICENSE); return 0; } else { FILE* flic = fopen("./LICENSE", "r");