BSD 4 development
[unix-history] / usr / src / cmd / vpr / vfw.c
CommitLineData
8ead9455
BJ
1#include <stdio.h>
2/*
3 * Quick hack to see the values in a troff width table.
4 */
5
6main(argc,argv)
7char **argv;
8{
9 FILE *f;
10 int c;
11 int i;
12
13 if (argc != 2) {
14 printf("usage: vfw ftX\n");
15 exit(1);
16 }
17 f = fopen(argv[1], "r");
18 if (f == NULL) {
19 printf("Can't open %s\n", argv[1]);
20 exit(1);
21 }
22 fseek(f, 32L, 0);
23 for (i=0; !feof(f); i++) {
24 c = getc(f);
25 printf("%d\t%d\n", i, c&255);
26 }
27 exit(0);
28}