Загрузить файлы в «/»

This commit is contained in:
8nlight 2023-10-19 00:19:04 +03:00
parent 298bfe2189
commit 9b7c0c1429

View File

@ -1,9 +1,9 @@
#include <stdio.h> #include <stdio.h>
#include "funcs.h" #include "funcs.h"
#include "config.h"
int main(void) { int main(void) {
Init(); Init();
void (*FUNCS[])(void) = {PrintOs, GetAvg, GetKernel, GetShell, GetUptime, GetUser, GetPkgs, GetArch, Blank, PrintColors};
size_t i; size_t i;
for (i = 0; i < sizeof(FUNCS) / sizeof(void *); i++) { for (i = 0; i < sizeof(FUNCS) / sizeof(void *); i++) {
@ -21,8 +21,8 @@ int main(void) {
//If art is larger than buffer size //If art is larger than buffer size
for (size_t j = i; j < Logo.size; j++) for (; i < Logo.size; i++)
printf("%s\n", Logo.art[j]); printf("%s\n", Logo.art[i]);
//Clean and close //Clean and close
printf("\n\033[0m"); printf("\n\033[0m");