Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (15 sloc) 379 Bytes

bytes

Convert bytelength strings such as "5kb" to a long long and vice versa.

Installation

Install with clib:

$ clib install clibs/file

API

long long
string_to_bytes(const char *str);

char *
bytes_to_string(long long bytes);

For usage view the tests