aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnser <rostgans@tutamail.com>2026-08-14 14:57:32 +0200
committerAnser <rostgans@tutamail.com>2026-08-14 15:01:09 +0200
commit06c44609bccebbeb3fa48050cbe2d91b0754b8a8 (patch)
tree85923c113898f33d358619bd07eedfde78c1925f /src
parent537230def11fddb3a63f8b4d0bf9b5d64b96e6d0 (diff)
Added the GPLv3 in every file. Removed unimplemented functions out of cfetch.c
Diffstat (limited to 'src')
-rw-r--r--src/ascii.c17
-rw-r--r--src/cfetch.c40
-rw-r--r--src/sysinfo.c18
-rw-r--r--src/utils.c17
4 files changed, 77 insertions, 15 deletions
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 <https://codeberg.org/Anser/cfetch>
+*
+* 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 <https://www.gnu.org/licenses/>.
+*/
+
#include "../include/cfetch.h"
#include <stddef.h>
#include <stdio.h>
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 <https://codeberg.org/Anser/cfetch>
*
-* 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 <https://www.gnu.org/licenses/>.
*/
#ifndef CFETCH_VERSION
@@ -25,22 +33,24 @@ int main(void) {
// set systeminformation
// use // to uncomment or comment
- // get_os: Ubuntu <version>
- // 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 <version>
+ 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 <https://codeberg.org/Anser/cfetch>
+*
+* 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 <https://www.gnu.org/licenses/>.
+*/
+
+
#include "../include/cfetch.h"
#include <stdio.h>
#include <sys/utsname.h>
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 <https://codeberg.org/Anser/cfetch>
+*
+* 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 <https://www.gnu.org/licenses/>.
+*/
+
#include "../include/cfetch.h"
#include <string.h>