2023-08-01 19:41:49 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "funcs.h"
|
2023-10-18 21:19:04 +00:00
|
|
|
#include "config.h"
|
2023-08-01 19:41:49 +00:00
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
Init();
|
|
|
|
|
|
|
|
size_t i;
|
|
|
|
for (i = 0; i < sizeof(FUNCS) / sizeof(void *); i++) {
|
|
|
|
if (i < Logo.size)
|
|
|
|
printf("%s", Logo.art[i]);
|
|
|
|
|
|
|
|
//If art is less than buffer size
|
|
|
|
else if (i >= Logo.size)
|
2023-10-18 20:55:28 +00:00
|
|
|
printf("%s", Logo.art[Logo.size - 1]);
|
2023-08-01 19:41:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
FUNCS[i]();
|
2023-08-20 06:54:50 +00:00
|
|
|
printf("\033[0m\n");
|
2023-08-01 19:41:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//If art is larger than buffer size
|
2023-10-18 21:19:04 +00:00
|
|
|
for (; i < Logo.size; i++)
|
|
|
|
printf("%s\n", Logo.art[i]);
|
2023-08-01 19:41:49 +00:00
|
|
|
|
|
|
|
//Clean and close
|
|
|
|
printf("\n\033[0m");
|
|
|
|
if (Os != NULL)
|
|
|
|
free(Os);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|