Revision 8d61f0f07d078f4ea05d0b70511b0c8c39d8e863 authored by Junio C Hamano on 18 May 2016, 21:40:13 UTC, committed by Junio C Hamano on 18 May 2016, 21:40:14 UTC
* rn/glossary-typofix:
  Documentation: fix typo 'In such these cases'
2 parent s 977cb3e + 2e39a24
Raw File
test-index-version.c
#include "cache.h"

int main(int argc, char **argv)
{
	struct cache_header hdr;
	int version;

	memset(&hdr,0,sizeof(hdr));
	if (read(0, &hdr, sizeof(hdr)) != sizeof(hdr))
		return 0;
	version = ntohl(hdr.hdr_version);
	printf("%d\n", version);
	return 0;
}
back to top