dmc_unrar.c
v1.7.3
Published
A dependency-free, single-file FLOSS unrar library; Sven Hesse (2017).
Downloads
252
Maintainers
Readme
dmc_unrar
dmc_unrar is a dependency-free, single-file FLOSS library for unpacking and decompressing RAR archives - by Sven Hesse. dmc_unrar is licensed under the terms of the GNU General Public License version 2 (or later).
Please see dmc_unrar.h for details.
Installation
Run:
$ npm i dmc_unrar.cAnd then include dmc_unrar.h as follows:
// main.c
#include "node_modules/dmc_unrar.c/dmc_unrar.h"
int main() { /* ... */ }And then compile with clang or gcc as usual.
$ clang main.c # or, use gcc
$ gcc main.cYou may also use a simpler approach:
// main.c
#include <dmc_unrar.h>
int main() { /* ... */ }If you add the path node_modules/dmc_unrar.c to your compiler's include paths.
$ clang -I./node_modules/dmc_unrar.c main.c # or, use gcc
$ gcc -I./node_modules/dmc_unrar.c main.c