4 ass_file *ass_fopen(const char *fname, const char *mode)
6 return (ass_file*)fopen(fname, mode);
9 void ass_fclose(ass_file *fp)
14 long ass_fseek(ass_file *fp, long offs, int whence)
16 fseek((FILE*)fp, offs, whence);
17 return ftell((FILE*)fp);
20 long ass_ftell(ass_file *fp)
22 return ftell((FILE*)fp);
25 size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
27 return fread(buf, size, count, (FILE*)fp);