diff --git a/bin/untar.c b/bin/untar.c new file mode 100644 index 0000000..8ad9caf --- /dev/null +++ b/bin/untar.c @@ -0,0 +1,28 @@ +#include +#include +#include + + +int main (int argc, char* argv[]) +{ + hio_t* hio; + + if (argc != 2) + { + fprintf (stderr, "Usage: %s \n", hio_get_base_name_bcstr(argv[0])); + return -1; + } + + hio = hio_open(HIO_NULL, 0, HIO_NULL, HIO_FEATURE_ALL, 512, HIO_NULL); + if (!hio) + { + fprintf (stderr, "Error: unable to open hio\n"); + return -1; + } + + hio_extract_tar(hio, argv[1]); + + hio_close (hio); + return 0; +} +