Merged license defines

This commit is contained in:
luca0N! 2020-05-11 13:35:29 -03:00
parent 84ca4325c8
commit f08d6c488f
No known key found for this signature in database
GPG Key ID: 9F1B99B522287CAB
2 changed files with 3 additions and 8 deletions

View File

@ -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

6
main.c
View File

@ -23,15 +23,13 @@
// #include "colors.h"
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <string.h>
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");