Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
byte <> string conversion utilities
C Makefile
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
.travis.yml
History.md
Makefile
Readme.md dox
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

Something went wrong with that request. Please try again.