| 56 | // |
| 57 | |
| 58 | int |
| 59 | ppdcFile::get() |
| 60 | { |
| 61 | int ch; // Character from file |
| 62 | |
| 63 | |
| 64 | // Return EOF if there is no open file... |
| 65 | if (!fp) |
| 66 | return (EOF); |
| 67 | |
| 68 | // Get the character... |
| 69 | ch = cupsFileGetChar(fp); |
| 70 | |
| 71 | // Update the line number as needed... |
| 72 | if (ch == '\n') |
| 73 | line ++; |
| 74 | |
| 75 | // Return the character... |
| 76 | return (ch); |
| 77 | } |
| 78 | |
| 79 | |
| 80 | // |
no test coverage detected