byte <> string conversion utilities
C Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
History.md
Makefile
Readme.md
bytes.c
bytes.h
package.json
test.c

Readme.md

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