summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2023-12-14 18:08:16 -0500
committerFreya Murphy <freya@freyacat.org>2023-12-14 18:08:16 -0500
commit00c88659104ce423959151ff6f3f96f6537a6d68 (patch)
treec2745a95c2b7f15f69f8bfcaa85e0b12626f6142 /src/main.c
downloadnbtvis-00c88659104ce423959151ff6f3f96f6537a6d68.tar.gz
nbtvis-00c88659104ce423959151ff6f3f96f6537a6d68.tar.bz2
nbtvis-00c88659104ce423959151ff6f3f96f6537a6d68.zip
testing
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
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);
+}