Rev 108 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 108 | Rev 154 | ||
---|---|---|---|
Line 47... | Line 47... | ||
47 | */ |
47 | */ |
48 | if (!(test_input = fopen(filename, "r"))) { |
48 | if (!(test_input = fopen(filename, "r"))) { |
49 | printf("file %s does not exist.\n", filename); |
49 | printf("file %s does not exist.\n", filename); |
50 | return; |
50 | return; |
51 | } |
51 | } |
52 | while ( |
52 | while (FOREVER) { |
53 | eof = fgets(buffer, 4096, test_input); |
53 | eof = fgets(buffer, 4096, test_input); |
54 | if (eof) { |
54 | if (eof) { |
55 | char *delim; |
55 | char *delim; |
56 | 56 | ||
57 | delim = strchr(buffer, '\n'); |
57 | delim = strchr(buffer, '\n'); |