aboutsummaryrefslogtreecommitdiffstats
path: root/machine_type.c
blob: 0aa13225c761f21c194b84073fb8f0d5ed4a38ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);	
}