static fpos_t GetFileLen(IN FILE *fp) { fpos_t pos = -1; if( fseek(fp,0,SEEK_END) || fgetpos(fp,&pos) || fseek(fp,0,SEEK_SET) ) { } return pos; }