summaryrefslogtreecommitdiff
path: root/src/main.c
blob: 077085ccc2dad34bead23aa7f9ed108629a687cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}