#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); }