stdio_test.cpp | 133 size_t allocated_length = 0; local 138 ASSERT_EQ(getdelim(&word_read, &allocated_length, ' ', fp), static_cast<int>(strlen(expected[i]))); 139 ASSERT_GE(allocated_length, strlen(expected[i])); 149 ASSERT_EQ(getdelim(&word_read, &allocated_length, ' ', fp), -1); 186 size_t allocated_length; local 187 ASSERT_EQ(-1, getdelim(&word_read, &allocated_length, ' ', fp)); 206 size_t allocated_length = 0; local 210 while ((read_char_count = getline(&line_read, &allocated_length, fp)) != -1) { 212 ASSERT_GE(allocated_length, strlen(line_written)); 225 ASSERT_EQ(getline(&line_read, &allocated_length, fp), -1) [all...] |