summaryrefslogtreecommitdiff
path: root/lib/num2str.h
blob: 797288b5af891a616a082f161ac1fb32d6e663f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef FIO_NUM2STR_H
#define FIO_NUM2STR_H

#include <inttypes.h>

enum n2s_unit {
	N2S_NONE	= 0,
	N2S_PERSEC	= 1,
	N2S_BYTE	= 2,
	N2S_BIT		= 3,
	N2S_BYTEPERSEC	= 4,
	N2S_BITPERSEC	= 5,
};

extern char *num2str(uint64_t, int, int, int, enum n2s_unit);

#endif