From 00c88659104ce423959151ff6f3f96f6537a6d68 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 14 Dec 2023 18:08:16 -0500 Subject: testing --- src/main.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main.c (limited to 'src/main.c') 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); +} -- cgit v1.2.3-freya