diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..077085c --- /dev/null +++ b/src/main.c @@ -0,0 +1,15 @@ +#include "tag.h" +#include "lib.h" + +int main (int argc, char** argv) { + + stream_t stream = stream_open(argv[1], "rb"); + + tag_t tag; + tag_read(&tag, &stream, true); + + if (tag.type != TAG_COMPOUND) + error_and_die("root tag is not of type compound"); + + stream_close(&stream); +} |