File: num2str.h

package info (click to toggle)
fio 3.41-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,012 kB
  • sloc: ansic: 82,290; python: 9,862; sh: 6,067; makefile: 813; yacc: 204; lex: 184
file content (19 lines) | stat: -rw-r--r-- 342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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);

extern const char *bytes2str_simple(char *buf, size_t bufsize, uint64_t bytes);

#endif