File: machine_type.c

package info (click to toggle)
dhex 0.68-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 396 kB
  • ctags: 264
  • sloc: ansic: 3,937; makefile: 105; sh: 46
file content (23 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (5)
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);	
}