1
1
#include <stdio.h>
2
2
3
- void print_banner () {
3
+ void print_banner (void ) {
4
4
printf ("\n \
5
5
____ _\n \
6
6
/ ___| _ __ _ _ _ __ (_)_ __\n \
@@ -10,29 +10,73 @@ void print_banner() {
10
10
|_| |___/\n\n" );
11
11
}
12
12
13
- void print_err_info () {
13
+ void print_logo (void ) {
14
+ printf ("MMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNK0OkxxdddddxkkO0KNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\n\
15
+ MMMMMMMMMMMMMMMMMMMMMMMWXKOxdoc:;,,''''''''',,;:codxOKXWMMMMMMMMMMMMMMMMMMMMMMM\n\
16
+ MMMMMMMMMMMMMMMMMMMWKOdl;,'',;:clooooddddoooollc:;''',:ldOKWMMMMMMMMMMMMMMMMMMM\n\
17
+ MMMMMMMMMMMMMMMMN0dc,.',:loxkOOOOOOOOOOOOOOOOOOOOkxdoc;'..,cd0NMMMMMMMMMMMMMMMM\n\
18
+ MMMMMMMMMMMMMW0d:'.':oxOOOOOkkxdollcc::::ccclodxkkOOO0Okoc,..':d0WMMMMMMMMMMMMM\n" );
19
+ printf ("MMMMMMMMMMWXkl'.':okOOOOkxoc;'...''.........'...',:ldkOOO0Oxl,..,lkNWMMMMMMMMMM\n\
20
+ MMMMMMMMMXk:..,lxOOOOxo:'. ......,;:lllc:;'....'. ...;lxkOOOOd:...:kNMMMMMMMMM\n\
21
+ MMMMMMMNO:..,okOkOkd:. .' .;cc:::;'......,:loxO0o..;. .,lxOkOOxc...:OWMMMMMMM\n\
22
+ MMMMMWKo'.'lkOkOkl' .,c. .. ..';cclodddxdooodOO;.;c.. .:dOkkOx:..'oKMMMMMM\n\
23
+ MMMMWO;..:xOkkko' ..,l, . .','..',;clx0x..cl,.. .:xOkkOd,..;OWMMMM\n" );
24
+ printf ("MMMNx'..lOkkkx; ..';lc. ...',;cldk; 'oc,,... .ckkkOk:..,xNMMM\n\
25
+ MMNd'.'dOxkkl. ..',;lo' ..',;co:. :oc;;'.. ,dkxkOl..'dNMM\n\
26
+ MWx'.'dkxkk:. ..,::ccc, ...';:lkk, .:cc:::,'. .okxxOl..'xWM\n\
27
+ WO, .okxkk: .',,,;;,'. ......';:codk0xc::;;;,,,'. .lkxxkc..,OW\n\
28
+ K:..ckxxk: ...,clcc:,.. ...',,;;:cclooooddxkOO00Oko:'... .okdxx; .cK\n" );
29
+ printf ("x. ,dxdkl. .','.. .......'''''',,,;;;:::cclllllcc:;,'..',,'. 'dxdxo. .x\n\
30
+ :..cxdxd' ..';:::;. ..........''''...'''.... '::c:,'.. :xddx; .:\n\
31
+ ' 'odoxl. ...',;co' ..,,'. .',;'. .co:;,''... 'odoxl. '\n\
32
+ . ,ddox; ...',;co, .. .ck0K0d;. .'lOKKOo,. '..co:;,'.... .ldldo' .\n\
33
+ . ;dood, ...',;:oc.'' ':oOKXKkc;. ;l:'.,:d0KX0xc;..,.'ol:;,''... cdloo' .\n" );
34
+ printf (". ;dood, ...',,;co;.. .;cloolc:,..lkk: .:cloolc:'....co:;,,'.... :dloo' .\n\
35
+ . ,oold; ...',;;:lo; ..'''''. .oO0l. ..'','''. .loc:;,,'.... .cocol. .\n\
36
+ . .lococ. ...',;:lll;. .o00o.......';o: 'cloc:;,'... .llcoc. .\n\
37
+ ; .:ocll' ..,:c:,'',c;... .,'..,;::cldOx'.c:'.';:c:;'.. ,lcco; :\n\
38
+ d. 'lc:l:. .',,'.':oxdc' . .',;:::cloxk: .;oxdl;..',,'. .cl:lc. .d\n" );
39
+ printf ("K; .:l::l, '.. ,okdc'. . 'cloc::clxkc. .,lxko, ..'. ;c::l, :K\n\
40
+ Wk' .cc;:c' ....,xx,. .. .,;llccldx: .;kk;.... ,c;;c:. 'kW\n\
41
+ MNd. .cc,;c' .'..:l;. ...',:cooc. .:dl...'. ,c;,c:. .dNM\n\
42
+ MMNo. .::,;:;. .'..'c:. ..,;::cc:;. .:l,..,. .,:,,::. .oNMM\n\
43
+ MMMNd. .;:,'::. .'..,:'. ...... .'::..''. .;;',:;. .dNMMM\n" );
44
+ printf ("MMMMNx' .,:,',:,. .....;,. .,:'..'. .;;'';:'. 'kWMMMM\n\
45
+ MMMMMW0:. .;;'.,;,. .',. .,,. .. .,;,.';,. .c0WMMMMM\n\
46
+ MMMMMMMNx,. .;;'.,;,.. .'. .,. .',;'.';,. .,xNMMMMMMM\n\
47
+ MMMMMMMMWXd,. .,,,..,;,'. ... ... .',,,..,,,. .,dXMMMMMMMMM\n\
48
+ MMMMMMMMMMWXd;. .',,'..,,,,'.. ...'',,'..',,.. .;xXWMMMMMMMMMM\n" );
49
+ printf ("MMMMMMMMMMMMMNOl'. ..'''...',,,,''''''''''''''',,,''..''''.. .'lONMMMMMMMMMMMMM\n\
50
+ MMMMMMMMMMMMMMMWXkl,. ......'''...'''''''''......''..... .,lkXWMMMMMMMMMMMMMMM\n\
51
+ MMMMMMMMMMMMMMMMMMWN0dc,.. ........................ ..,cd0NWMMMMMMMMMMMMMMMMMM\n\
52
+ MMMMMMMMMMMMMMMMMMMMMMWNKOdl:,'... ...',:ldOKNWMMMMMMMMMMMMMMMMMMMMMM\n\
53
+ MMMMMMMMMMMMMMMMMMMMMMMMMMMMWNKOkdlc:::::::cldkOKNWMMMMMMMMMMMMMMMMMMMMMMMMMMMM\n" );
54
+ }
55
+
56
+ void print_err_info (void ) {
14
57
printf ("Use spynix -h or spynix --help to display all valid options\n" );
15
58
}
16
59
17
- void print_hlp_info () {
60
+ void print_hlp_info (void ) {
18
61
print_banner ();
19
- printf ("Spynix is a commandline tool for gathering info about hardware.\n\n \
20
- Info:\n\t \
21
- -h or --help \t- show this menu\n\t \
22
- -v or --version \t- show version\n\t \
23
- -b or --banner \t- show ASCII banner\n\n \
24
- Options:\n\t \
25
- -a or --all \t- show summary info about system, cpu, ram and rom\n\t \
26
- -sys \t\t- show system info\n\t \
27
- -cpu \t\t- show short Central Processing Unit info\n\t \
28
- -ram \t\t- show Random Access Memory info\n\t \
29
- -rom \t\t- show Read Only Memory info\n\t \
30
- -net \t\t- show network info\n\n \
31
- Advanced:\n\t \
32
- -cpu -f or -cpu --full \t- show full Central Processing Unit info\n" );
62
+ printf ("Spynix is a commandline tool for gathering info about hardware.\n\n\
63
+ \t\tInfo:\n\
64
+ \t\t\t-h or --help \t\t- show this menu\n\
65
+ \t\t\t-v or --version \t- show version\n\
66
+ \t\t\t-b or --banner \t\t- show ASCII banner\n\
67
+ \t\t\t-l or --logo \t\t- show ASCII logo\n\n" );
68
+ printf ("\t\tOptions:\n\
69
+ \t\t\t-a or --all \t- show summary info about system, cpu, ram and rom\n\
70
+ \t\t\t-sys \t\t- show system info\n\
71
+ \t\t\t-cpu \t\t- show short Central Processing Unit info\n\
72
+ \t\t\t-ram \t\t- show Random Access Memory info\n\
73
+ \t\t\t-rom \t\t- show Read Only Memory info\n\
74
+ \t\t\t-net \t\t- show network info\n\n\
75
+ \t\tAdvanced:\n\
76
+ \t\t-cpu -f or -cpu --full \t- show full Central Processing Unit info\n" );
33
77
}
34
78
35
- void print_ver_info () {
79
+ void print_ver_info (void ) {
36
80
print_banner ();
37
- printf ("spynix v2.1 .0\n\nFor more info visit: https://github.com/git-user-cpp/spynix\n" );
81
+ printf ("spynix v3.0 .0\n\nFor more info visit: https://github.com/git-user-cpp/spynix\n" );
38
82
}
0 commit comments