Lines Matching refs:file
31 FILE *file = NULL;
37 file = fopen(filename, "rb");
38 if (file == NULL)
44 if (fseek(file, 0, SEEK_END) != 0)
48 length = ftell(file);
53 if (fseek(file, 0, SEEK_SET) != 0)
65 /* read the file into memory */
66 read_chars = fread(content, sizeof(char), (size_t)length, file);
77 if (file != NULL)
79 fclose(file);
97 printf("\t input_file: file containing the test data\n");