Lines Matching refs:fp
78 FILE *fp = NULL;
90 fp = fopen(realPath, "r");
91 if (fp == NULL) {
95 ret = fseek(fp, 0L, SEEK_END);
97 fclose(fp);
98 fp = NULL;
102 fileSize = (int)ftell(fp);
104 ret = fseek(fp, 0L, SEEK_SET);
106 fclose(fp);
107 fp = NULL;
110 int len = (int)fread(&xmlHeader, 1, sizeof(int), fp);
113 fclose(fp);
114 fp = NULL;
118 (void)fclose(fp);
119 fp = NULL;
126 FILE *fp = NULL;
137 fp = fopen(realPath, "rb");
138 if (fp == NULL) {
143 fileSize = (int)fread(buffer, sizeof(char), (unsigned int)bufLen, fp);
146 fclose(fp);
147 fp = NULL;
151 (void)fclose(fp);
152 fp = NULL;