Lines Matching defs:fp
651 void ScreenRecoveryUI::ShowFile(FILE* fp) {
653 offsets.push_back(ftell(fp));
657 fstat(fileno(fp), &sb);
663 static_cast<int>(100 * (double(ftell(fp)) / double(sb.st_size))),
676 fseek(fp, offsets.back(), SEEK_SET);
679 if (feof(fp)) {
682 offsets.push_back(ftell(fp));
688 int ch = getc(fp);
702 FILE* fp = fopen_path(filename, "re");
703 if (fp == nullptr) {
717 ShowFile(fp);
718 fclose(fp);