[net.bugs.v7] Code to identify "compress"ed files for "file"

guy@sun.uucp (Guy Harris) (09/03/85)

Here's some code to add into "file.c" somewhere before it starts scrabbling
around looking for C/FORTRAN/assembler-language keywords:

	if (buf[0] == '\037' && buf[1] == '\235') {
		printf("compressed data, ");
		if (buf[2]&0x80)
			printf("block compressed, ");
		printf("%d bits\n", buf[2]&0x1f);
		goto out;
	}

If you have "compress" on your system, this will recognize compressed files
and dump some extra information about them.

	Guy Harris