/* * A file with a rather specific purpose... * Grep, but for pub files. * */ #include #include int main(int argc, char *argv[]) { FILE *infile; int c=0; int prev; int i=0; infile=fopen(argv[1], "r"); while (c != EOF) { prev=c; c=fgetc(infile); if (c==0x7e) { printf("Found 0x7e at %d\n", i); } i++; } fclose(infile); }