From 62f81e5cafbacfb90ac0f86e52e8e3176aa5ba8f Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Tue, 30 Oct 2012 21:29:30 +0000 Subject: Imported Upstream version 0.65 --- machine_type.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 machine_type.c (limited to 'machine_type.c') diff --git a/machine_type.c b/machine_type.c new file mode 100644 index 0000000..0aa1322 --- /dev/null +++ b/machine_type.c @@ -0,0 +1,23 @@ +#include +#include "machine_type.h" + +tUInt64 getfilepos(tFptr f) +{ + tUInt64 x; + x=ftell(f); + return x; +} +tUInt64 getfilesize(tFptr f) +{ + tUInt64 x; + fseek(f,0,SEEK_END); + x=getfilepos(f); + + return x; + //return (tUInt64)ftell(f); +} +void setfilepos(tFptr f,tUInt64 pos) +{ + fseek(f,pos,SEEK_SET); +} + -- cgit v1.2.3