static ZPOS64_T ZCALLBACK ftell64_file_func (voidpf opaque, voidpf stream) { ZPOS64_T ret; (void) opaque; ret = FTELLO_FUNC((FILE *)stream); return ret; }
int is_large_file(const char* filename) { ZPOS64_T pos = 0; FILE* pFile = FOPEN_FUNC(filename, "rb"); if (pFile == NULL) return 0; FSEEKO_FUNC(pFile, 0, SEEK_END); pos = FTELLO_FUNC(pFile); fclose(pFile); printf("File : %s is %lld bytes\n", filename, pos); return (pos >= 0xffffffff); }
int isLargeFile(const char* filename) { int largeFile = 0; ZPOS64_T pos = 0; FILE* pFile = FOPEN_FUNC(filename, "rb"); if(pFile != NULL) { int n = FSEEKO_FUNC(pFile, 0, SEEK_END); pos = FTELLO_FUNC(pFile); if(pos >= 0xffffffff) largeFile = 1; fclose(pFile); } return largeFile; }
static uint64_t ZCALLBACK ftell64_file_func (voidpf opaque, voidpf stream) { return (uint64_t) FTELLO_FUNC((FILE *)stream); }