diff options
Diffstat (limited to '')
-rw-r--r-- | machine_type.c | 23 |
1 files changed, 23 insertions, 0 deletions
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 <stdio.h> +#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); +} + |