Searched refs:line_buffer (Results 1 – 2 of 2) sorted by relevance
130 char* line_buffer = nullptr; in GetLineData() local133 read = getline(&line_buffer, &len, fp); in GetLineData()135 if (line_buffer[read - 1] == '\n') { in GetLineData()136 line_buffer[read - 1] = '\0'; // replease \n in GetLineData()138 std::string line = line_buffer; in GetLineData()149 if (line_buffer != nullptr) { in GetLineData()150 free(line_buffer); in GetLineData()151 line_buffer = nullptr; in GetLineData()
106 char* line_buffer = nullptr; in ReadLineInFile() local109 read = getline(&line_buffer, &len, fp_); in ReadLineInFile()111 if (line_buffer[read-1] == '\n') { in ReadLineInFile()112 line_buffer[read-1] = '\0'; // replease \n in ReadLineInFile()114 std::string line = line_buffer; in ReadLineInFile()134 if (line_buffer != nullptr) { in ReadLineInFile()135 free(line_buffer); in ReadLineInFile()136 line_buffer = nullptr; in ReadLineInFile()