xref: /csrg-svn/old/vpr/vtools/vfw.c (revision 13948)
1 #ifndef lint
2 static char sccsid[] = "@(#)vfw.c	4.2 (Berkeley) 07/16/83";
3 #endif
4 
5 /*
6  * Quick hack to see the values in a troff width table.
7  */
8 
9 #include <stdio.h>
10 
11 main(argc,argv)
12 char **argv;
13 {
14 	FILE *f;
15 	int c;
16 	int i;
17 
18 	if (argc != 2) {
19 		printf("usage: vfw ftX\n");
20 		exit(1);
21 	}
22 	f = fopen(argv[1], "r");
23 	if (f == NULL) {
24 		printf("Can't open %s\n", argv[1]);
25 		exit(1);
26 	}
27 	fseek(f, 32L, 0);
28 	for (i=0; !feof(f); i++) {
29 		c = getc(f);
30 		printf("%d\t%d\n", i, c&255);
31 	}
32 	exit(0);
33 }
34