|
|
1.1 ! root 1: #include <stdio.h> ! 2: /* ! 3: * Quick hack to see the values in a troff width table. ! 4: */ ! 5: ! 6: main(argc,argv) ! 7: char **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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.