Lines Matching refs:file
48 FILE *file = NULL;
54 file = fopen(filename, "rb");
55 if (file == NULL)
61 if (fseek(file, 0, SEEK_END) != 0)
65 length = ftell(file);
70 if (fseek(file, 0, SEEK_SET) != 0)
82 /* read the file into memory */
83 read_chars = fread(content, sizeof(char), (size_t)length, file);
94 if (file != NULL)
96 fclose(file);