Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- cfetch.c Mon Nov 24 21:16:49 2025
- +++ cfetch.old Mon Nov 24 21:17:28 2025
- @@ -5,21 +5,6 @@
- #include <stdlib.h>
- #include <string.h>
- -#ifdef __sgi
- -#include <sys/syssgi.h>
- -#include <string.h>
- -
- -void get_irix_version(char *out, size_t sz) {
- - if (!out || sz == 0) return;
- -
- - if (syssgi(SGI_RELEASE_NAME, sz, out) < 0) {
- - /* fallback when syssgi unavailable or fails */
- - strncpy(out, "IRIX (unknown)", sz - 1);
- - out[sz - 1] = '\0';
- - }
- -}
- -#endif
- -
- #ifdef __linux__
- void print_ascii() {
- const char *ascii[] = {
- @@ -165,57 +150,6 @@
- printf("%s\n", ascii[i]);
- }
- }
- -#elif __sgi
- -void print_ascii() {
- - const char *ascii[] = {
- - " . .-*###*=. . ",
- - " . . . . .+#######+. ",
- - " . . . . ..... .*########. . ",
- - " . . . .-*######- . .=#######=. . ",
- - " . . . . . . .:##########* .*###*: ",
- - " . . . -###########+: . . . ",
- - " . .*########+:.. :--:.",
- - " . ...-=+**++-:.. . . ...-=+**+########: ............... . .-:+=:=",
- - " .:+##############*=. . . .:+###############+. . .%%%%%%%%%%%%%=. ..:.+=.=",
- - " :####################*. =####################- .%############=. ..===-.",
- - " .+#######################-. . . .-########################:. .%############=. ",
- - " .+########=:.. .:=#######*. . .=########+-.. ..-+########=. . .=====+#######=. ",
- - " :#######=. .:#####+. . =#######*.. ..*#######-.. =#######=. .",
- - " -#######: ..--. :%#######. .########. . =#######=. . ",
- - " -#######- +#######= =#######- =#######=. . ",
- - " :*#######: . *#######- . . -#######= . . =#######=. . .",
- - " .=########*-:. . *#######- -#######= . =#######=. . ",
- - " .+############*+-. . . *#######- .. -#######= =#######=. . . ",
- - " . .*################=.. *#######- . -#######= =#######=. ",
- - " .=*################=. +#######= =#######= =#######=. .",
- - " ..:-*##############- -########. .########. =#######=. ",
- - " .:+##########-. +#######+. .+#######- =#######=. . ",
- - " .-########. .*#######*-. ..=########=. . =#######=. . ",
- - " . . .%######+ .+########################-. . =#######=. . ",
- - " ... +######* -######################+ . .=#######=. ",
- - ".:=+###. . *######* . :*###################*-. =#######=. ",
- - "+#######- -#######= .=######-.=+#%%%#*+:.. . -#######*. ",
- - ".*#######+:. . .:+#######*. :######+ . . . .*#######*:. ",
- - " :*#########*++++*#########*:. . .######*. .. :##########*- ",
- - " =######################+ . .*######- . .###########*. ",
- - " .=##################=. -#####################%%#*+-. . .-*########*. .",
- - " .:+*%######%*=:. . -############################*-. .:-+**=:. ",
- - " -##############################. . . . ",
- - " . . .+#######=:.....:=#######*. . . ",
- - " .+######+. .+######=. . . ",
- - ". . . . . . :#######. . .*#####+. . ",
- - " . . . :#######. . .######+. ",
- - " . .*######+. . .=######=. ",
- - " . -########-:.....:-#######*. . . ",
- - " . . . -######################*. . .",
- - " . . .-###################:. . ",
- - " . . .-+***********=: ",
- - };
- - int count = sizeof(ascii) / sizeof(ascii[0]);
- - for (int i = 0; i < count; i++) {
- - printf("%s\n", ascii[i]);
- - }
- -}
- #else
- void print_ascii() {
- const char *ascii[] = {
- @@ -273,9 +207,6 @@
- char OSVER[256] = "OpenBSD";
- #elif __NetBSD__
- char OSVER [256] = "NetBSD";
- -#elif __sgi
- - char OSVER[256];
- - get_irix_version(OSVER, sizeof(OSVER));
- #endif
- result = gethostname(hostname, sizeof(hostname));
- @@ -286,4 +217,4 @@
- printf("Terminal Emulator: %s\n", terminal);
- print_ascii();
- return 0;
- -}
- +}
Advertisement
Add Comment
Please, Sign In to add comment