Загрузить файлы в «/»
This commit is contained in:
parent
298bfe2189
commit
9b7c0c1429
6
fetch.c
6
fetch.c
@ -1,9 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include "funcs.h"
|
||||
#include "config.h"
|
||||
|
||||
int main(void) {
|
||||
Init();
|
||||
void (*FUNCS[])(void) = {PrintOs, GetAvg, GetKernel, GetShell, GetUptime, GetUser, GetPkgs, GetArch, Blank, PrintColors};
|
||||
|
||||
size_t i;
|
||||
for (i = 0; i < sizeof(FUNCS) / sizeof(void *); i++) {
|
||||
@ -21,8 +21,8 @@ int main(void) {
|
||||
|
||||
|
||||
//If art is larger than buffer size
|
||||
for (size_t j = i; j < Logo.size; j++)
|
||||
printf("%s\n", Logo.art[j]);
|
||||
for (; i < Logo.size; i++)
|
||||
printf("%s\n", Logo.art[i]);
|
||||
|
||||
//Clean and close
|
||||
printf("\n\033[0m");
|
||||
|
Loading…
Reference in New Issue
Block a user