diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-10-30 21:29:30 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-10-30 21:29:30 +0000 |
commit | 62f81e5cafbacfb90ac0f86e52e8e3176aa5ba8f (patch) | |
tree | 8f8f6028fa880b3296b1e42bc8d87cead73aaf78 /machine_type.c | |
download | dhex-62f81e5cafbacfb90ac0f86e52e8e3176aa5ba8f.tar.gz |
Imported Upstream version 0.65upstream/0.65
Diffstat (limited to 'machine_type.c')
-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); +} + |