| 122 | MeasurementResult measurement; |
| 123 | |
| 124 | bool ReadLine(FILE* fp, std::string* line) { |
| 125 | line->clear(); |
| 126 | int ch; |
| 127 | while ((ch = fgetc(fp)) != EOF) { |
| 128 | if (ch == '\n') { |
| 129 | return true; |
| 130 | } |
| 131 | line->push_back(static_cast<char>(ch)); |
| 132 | } |
| 133 | return !line->empty(); |
| 134 | } |
| 135 | |
| 136 | void CopyFileContents(FILE* src, FILE* dst, const std::string& srcFileName, |
| 137 | const std::string& dstFileName) { |
no test coverage detected