From 06c44609bccebbeb3fa48050cbe2d91b0754b8a8 Mon Sep 17 00:00:00 2001 From: Anser Date: Fri, 14 Aug 2026 14:57:32 +0200 Subject: Added the GPLv3 in every file. Removed unimplemented functions out of cfetch.c --- Makefile | 18 +++++++++++++----- include/cfetch.h | 17 +++++++++++++++++ src/ascii.c | 17 +++++++++++++++++ src/cfetch.c | 40 +++++++++++++++++++++++++--------------- src/sysinfo.c | 18 ++++++++++++++++++ src/utils.c | 17 +++++++++++++++++ 6 files changed, 107 insertions(+), 20 deletions(-) diff --git a/Makefile b/Makefile index 453ce67..b4a3dcb 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,19 @@ -# cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +# cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. # Copyright (C) 2026 Anser # -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, +# or (at your option) any later version. # +# cfetch is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . + CC = gcc CFLAGS = -Wall -Wextra -Wundef -Wshadow -Wformat=2 diff --git a/include/cfetch.h b/include/cfetch.h index b08c471..47a21d8 100644 --- a/include/cfetch.h +++ b/include/cfetch.h @@ -1,3 +1,20 @@ +/* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +* Copyright (C) 2026 Anser +* +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see . +*/ + #ifndef CFETCH_H #define CFETCH_H diff --git a/src/ascii.c b/src/ascii.c index f2e466f..f1365db 100644 --- a/src/ascii.c +++ b/src/ascii.c @@ -1,3 +1,20 @@ +/* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +* Copyright (C) 2026 Anser +* +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see . +*/ + #include "../include/cfetch.h" #include #include diff --git a/src/cfetch.c b/src/cfetch.c index 6edcd87..fd53ae5 100644 --- a/src/cfetch.c +++ b/src/cfetch.c @@ -1,10 +1,18 @@ /* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. * Copyright (C) 2026 Anser * -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see . */ #ifndef CFETCH_VERSION @@ -25,22 +33,24 @@ int main(void) { // set systeminformation // use // to uncomment or comment - // get_os: Ubuntu - // get_host: Laptop name? Precision 7680 get_kernel(&info); - // get_uptime - // get_packages - // get_shell - // get_resolution - // get_de - // get_wm - // get_terminal get_cpu(&info); - //get_gpu get_memory(&info); print_system_info(&info); - // get_colours ? return 0; } + /* not yet implemented: + get_os: Ubuntu + get_uptime + get_packages + get_shell + get_resolution + get_de + get_wm + get_terminal + get_host: Laptop name? Precision 7680 + get_gpu + get_colours ? + */ diff --git a/src/sysinfo.c b/src/sysinfo.c index eddaa02..7d72e02 100644 --- a/src/sysinfo.c +++ b/src/sysinfo.c @@ -1,3 +1,21 @@ +/* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +* Copyright (C) 2026 Anser +* +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see . +*/ + + #include "../include/cfetch.h" #include #include diff --git a/src/utils.c b/src/utils.c index 16f7589..395196a 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,3 +1,20 @@ +/* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +* Copyright (C) 2026 Anser +* +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see . +*/ + #include "../include/cfetch.h" #include -- cgit v1.2.3