xref: /csrg-svn/old/vpr/vtools/vfw.c (revision 20203)
1*20203Sdist /*
2*20203Sdist  * Copyright (c) 1983 Regents of the University of California.
3*20203Sdist  * All rights reserved.  The Berkeley software License Agreement
4*20203Sdist  * specifies the terms and conditions for redistribution.
5*20203Sdist  */
6*20203Sdist 
713948Ssam #ifndef lint
8*20203Sdist static char sccsid[] = "@(#)vfw.c	5.1 (Berkeley) 05/15/85";
9*20203Sdist #endif not lint
1013948Ssam 
1112116Sralph /*
1212116Sralph  * Quick hack to see the values in a troff width table.
1312116Sralph  */
1412116Sralph 
1512116Sralph #include <stdio.h>
1612116Sralph 
main(argc,argv)1712116Sralph main(argc,argv)
1812116Sralph char **argv;
1912116Sralph {
2012116Sralph 	FILE *f;
2112116Sralph 	int c;
2212116Sralph 	int i;
2312116Sralph 
2412116Sralph 	if (argc != 2) {
2512116Sralph 		printf("usage: vfw ftX\n");
2612116Sralph 		exit(1);
2712116Sralph 	}
2812116Sralph 	f = fopen(argv[1], "r");
2912116Sralph 	if (f == NULL) {
3012116Sralph 		printf("Can't open %s\n", argv[1]);
3112116Sralph 		exit(1);
3212116Sralph 	}
3312116Sralph 	fseek(f, 32L, 0);
3412116Sralph 	for (i=0; !feof(f); i++) {
3512116Sralph 		c = getc(f);
3612116Sralph 		printf("%d\t%d\n", i, c&255);
3712116Sralph 	}
3812116Sralph 	exit(0);
3912116Sralph }
40