Lines Matching defs:fp
55 FILE* fp = fopen(path.c_str(), "r");
56 if (!fp)
62 size_t bytes_read = fread(buf, 1, sizeof(buf), fp);
67 bool result = !ferror(fp);
68 fclose(fp);
73 FILE* fp = fopen(path.c_str(), "r");
74 if (!fp)
76 size_t written = fwrite(contents.data(), 1, contents.size(), fp);
77 bool result = written == contents.size() && !ferror(fp);
78 fclose(fp);