Removed a fread(memcpy) and malloc from quick thumbnail code.

This commit is contained in:
Steve Herrell
2010-11-16 09:51:23 -05:00
parent a9a8141b20
commit d934bc6f27
3 changed files with 11 additions and 23 deletions

View File

@@ -86,6 +86,10 @@ inline int fread (void* dst, int es, int count, IMFILE* f) {
}
}
inline char* fdata(int offset, IMFILE* f) {
return f->data + offset;
}
int fscanf (IMFILE* f, const char* s ...);
char* fgets (char* s, int n, IMFILE* f);
#endif