summaryrefslogtreecommitdiff
path: root/statuses/tools.c
blob: 1e0385d34a94705b15904444796a7eae80d86cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "tools.h"

char powertochar(int power)
{
	switch(power)
	{
		case 0:
			return 'b';
		case 1:
			return 'k';
		case 2:
			return 'M';
		case 3:
			return 'G';
		case 4:
			return 'T';
		case 5:
			return 'P';
		case 6:
			return 'E';
	}
	
	return '?';
}