Home | History | Annotate | Download | only in test

Lines Matching full:file_handle

27   FILE* file_handle = NULL;
29 fopen_s(&file_handle, SAMPLE_TTF_FILE, "rb");
31 file_handle = fopen(SAMPLE_TTF_FILE, "rb");
33 if (file_handle == NULL) {
36 fseek(file_handle, 0, SEEK_END);
37 size_t length = ftell(file_handle);
38 fseek(file_handle, 0, SEEK_SET);
41 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle);
43 fclose(file_handle);
88 FILE* file_handle = NULL;
90 fopen_s(&file_handle, SAMPLE_TTF_FILE, "rb");
92 file_handle = fopen(SAMPLE_TTF_FILE, "rb");
94 if (file_handle == NULL) {
97 fseek(file_handle, 0, SEEK_END);
98 size_t length = ftell(file_handle);
99 fseek(file_handle, 0, SEEK_SET);
102 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle);
104 fclose(file_handle);