refactored project structure

This commit is contained in:
Linus Dierheimer
2021-02-27 16:40:05 +01:00
parent 558639086a
commit b44ab16dd1
26 changed files with 219 additions and 211 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "fastfetch.h"
#include <string.h>
void ffPrintTitle(FFstate* state)
{
char hostname[256];
gethostname(hostname, 256);
state->titleLength = strlen(state->passwd->pw_name) + 1 + strlen(hostname);
ffPrintLogoLine(state);
printf(FASTFETCH_TEXT_MODIFIER_BOLT"%s%s"FASTFETCH_TEXT_MODIFIER_RESET"@"FASTFETCH_TEXT_MODIFIER_BOLT"%s%s"FASTFETCH_TEXT_MODIFIER_RESET"\n",
state->color, state->passwd->pw_name, state->color, hostname
);
}