Lines Matching refs:filename
154 char* filename; // used for zip entries member
166 char* filename; member
185 unsigned char* ReadZip(const char* filename, in ReadZip() argument
189 if (stat(filename, &st) != 0) { in ReadZip()
190 printf("failed to stat \"%s\": %s\n", filename, strerror(errno)); in ReadZip()
195 FILE* f = fopen(filename, "rb"); in ReadZip()
197 printf("failed to read \"%s\" %s\n", filename, strerror(errno)); in ReadZip()
238 char* filename = malloc(nlen+1); in ReadZip() local
239 memcpy(filename, cd+46, nlen); in ReadZip()
240 filename[nlen] = '\0'; in ReadZip()
247 free(filename); in ReadZip()
258 if (Read2(lh+26) != nlen || memcmp(lh+30, filename, nlen) != 0) { in ReadZip()
268 temp_entries[entrycount].filename = filename; in ReadZip()
281 temp_entries[i].filename, in ReadZip()
282 temp_entries[i].filename); in ReadZip()
295 curr->filename = NULL; in ReadZip()
310 curr->filename = temp_entries[nextentry].filename; in ReadZip()
331 printf("failed to inflate \"%s\"; %d\n", curr->filename, ret); in ReadZip()
355 curr->filename = NULL; in ReadZip()
376 unsigned char* ReadImage(const char* filename, in ReadImage() argument
379 if (stat(filename, &st) != 0) { in ReadImage()
380 printf("failed to stat \"%s\": %s\n", filename, strerror(errno)); in ReadImage()
385 FILE* f = fopen(filename, "rb"); in ReadImage()
387 printf("failed to read \"%s\" %s\n", filename, strerror(errno)); in ReadImage()
429 curr->filename = NULL; in ReadImage()
775 if (chunks[i].type == CHUNK_DEFLATE && chunks[i].filename && in FindChunkByName()
776 strcmp(name, chunks[i].filename) == 0) { in FindChunkByName()
896 "treating as normal\n", i, tgt_chunks[i].filename); in main()
899 ImageChunk* src = FindChunkByName(tgt_chunks[i].filename, src_chunks, num_src_chunks); in main()
917 src = FindChunkByName(tgt_chunks[i].filename, src_chunks, num_src_chunks); in main()
962 (src = FindChunkByName(tgt_chunks[i].filename, src_chunks, in main()
1026 tgt_chunks[i].filename); in main()