From 9bfaf4dd363429757754d9934ca38fad4ef7dc0a Mon Sep 17 00:00:00 2001 From: Anser Date: Thu, 13 Aug 2026 15:28:47 +0200 Subject: changed get_os to get_kernel, it now uses the system_info_t struct to store and display the kernel information. Same with get_cpu. --- include/cfetch.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/cfetch.h') diff --git a/include/cfetch.h b/include/cfetch.h index 268fa22..104ced4 100644 --- a/include/cfetch.h +++ b/include/cfetch.h @@ -13,7 +13,7 @@ typedef struct system_info_t{ char user[64]; - char kernel[64]; + char kernel[128]; char memory[64]; char cpu[64]; } system_info_t; @@ -33,7 +33,7 @@ typedef struct distro_mapping_t void print_ascii_art(system_info_t *info, int art); void get_cpu(system_info_t *info); void get_memory(system_info_t *info); -void get_os(system_info_t *info); +void get_kernel(system_info_t *info); void get_line_length(ascii_art_t *ascii, const char **line); @@ -41,5 +41,6 @@ void get_line_length(ascii_art_t *ascii, const char **line); char *string_format(char *string); char *concat(const char *str1, const char *str2); +char *trim_whitespace(char *str); #endif /* CFETCH_H */ -- cgit v1.2.3