1#include "cache.h"23int main(int argc, const char **argv)4{5struct cache_header hdr;6int version;78memset(&hdr,0,sizeof(hdr));9if (read(0, &hdr, sizeof(hdr)) != sizeof(hdr))10return 0;11version = ntohl(hdr.hdr_version);12printf("%d\n", version);13return 0;14}