Bencode decoder in ANSI C
UNLICENSE License
This is a strict steaming parser for bencode. Inputs are thoroughly validated and invalid inputs are rejected.
The full API is documented in bencode.h
. Here's the list of functions:
void bencode_init(struct bencode *, const void *, size_t);
void bencode_reinit(struct bencode *, const void *, size_t);
void bencode_free(struct bencode *);
int bencode_next(struct bencode *);
Run the test suite with make check
.