Ye Olde Brick, hacked one very late night in 2010.
[sysstatus.git] / statuses / tools.c
1 #include "tools.h"
2
3 char powertochar(int power)
4 {
5         switch(power)
6         {
7                 case 0:
8                         return 'b';
9                 case 1:
10                         return 'k';
11                 case 2:
12                         return 'M';
13                 case 3:
14                         return 'G';
15                 case 4:
16                         return 'T';
17                 case 5:
18                         return 'P';
19                 case 6:
20                         return 'E';
21         }
22         
23         return '?';
24 }