#ifndef _MEMF_H_ #define _MEMF_H_ typedef struct mfile { int len; int pos; void *data; } mfile; mfile *mem_fopen(int, void *); int mem_freopen(int, void *); void mem_fclose(mfile *); int mem_fread(void *, int, mfile *); char mem_getc(mfile *); int mem_igetw(mfile *); long mem_igetl(mfile *); int mem_mgetw(mfile *); long mem_mgetl(mfile *); int mem_iputw(int, mfile *); long mem_iputl(long, mfile *); int mem_mputw(int, mfile *); long mem_mputl(long, mfile *); int mem_fseek(mfile *, int, int); int mem_feof(mfile *); int mem_ftell(mfile *); int mem_fwrite(void *, int, mfile *); #endif /* #ifndef _MEMF_H_ */