blob: bfaad9e09e63a3f9e0d0d3575cce32859382398c [file] [log] [blame]
Nguyễn Thái Ngọc Duydbd57f92009-08-20 20:46:56 +07001#include "cache.h"
2
3int main(int argc, const char **argv)
4{
5 struct cache_header hdr;
6 int version;
7
8 memset(&hdr,0,sizeof(hdr));
9 if (read(0, &hdr, sizeof(hdr)) != sizeof(hdr))
10 return 0;
11 version = ntohl(hdr.hdr_version);
12 printf("%d\n", version);
13 return 0;
14}