Lines Matching defs:fp
28 FILE *fp = fopen(resolvedPath.c_str(), "a+");
29 if (fp == nullptr) {
37 if ((fp = fopen(resolvedPath.c_str(), "a+")) == nullptr) {
42 fwrite(buf, 1, bufLen, fp);
43 fflush(fp);
44 fclose(fp);
54 FILE *fp = fopen(pathName, "r");
55 if (fp == nullptr) {
57 (fp = fopen(pathName, "r")) == nullptr) {
58 if (fp != nullptr) {
59 fclose(fp);
69 fclose(fp);
72 int ret = fread(buf, 1, size, fp);
73 fflush(fp);
74 fclose(fp);