diff options
| author | Anser <rostgans@tutamail.com> | 2026-08-13 15:28:47 +0200 |
|---|---|---|
| committer | Anser <rostgans@tutamail.com> | 2026-08-14 10:44:28 +0200 |
| commit | 9bfaf4dd363429757754d9934ca38fad4ef7dc0a (patch) | |
| tree | c13a7148dfd96178481744368dd0d29a6bdc033d /include/cfetch.h | |
| parent | d195f0a76a3ce64761958f7d33ccbdbac3844fec (diff) | |
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.
Diffstat (limited to 'include/cfetch.h')
| -rw-r--r-- | include/cfetch.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |
