#ifndef CFILE
#define CFILE
#include <stdio.h>
#define cfile FILE*
#define cfile_fclose(cf) fclose((FILE *)cf)
#define cfile_filelength(fil) filelength((FILE *)fil)
#define cfile_fflush(fil) fflush((FILE *)fil)
#define cfile_fgetc(fil) fgetc((FILE *)fil)
#define cfile_fgets(buf, siz, fil) fgets((char *)buf, siz, (FILE *)fil)
#define cfile_fopen(fname, mode) fopen((char *)fname, (char *)mode)
#define cfile_fprintf(fil, buf) fprintf((FILE *)fil, (char *)buf)
#define cfile_fread(buf, siz, num, fil) fread((char*)buf, siz, nu, (FILE*)fil)
#define cfile_fseek(fil, off, org) fseek((FILE *)fil, off, org)
#define cfile_fwrite(buf, siz, num, fil) fwrite((char*)buf,siz,num,(FILE*)fil)
#define cfile_fputc(chr, fil) fputc(chr, (FILE*)fil)
#define cfile_fputs(str, fil) fputs((char *)str, (FILE *)fil)
#define cfile_remove(fname) remove((char *)fname)
#define cfile_rename(old_name,new_name) rename((char*)old_name,(char*)new_name)
#define cfile_setbuf(fil, buf) setbuf((FILE*)fil, (char*)buf)
#endif

