FireBirdLib - Topfield TMS PVR TAP Programming Library
infData_Flen.c
Go to the documentation of this file.
1
#include <stdio.h>
2
#include "
FBLib_rec.h
"
3
4
extern
FILE
*
infDatainfFile
;
5
6
dword
infData_Flen
(
void
)
7
{
8
long
tempPos=0;
9
long
tempLen=0;
10
11
TRACEENTER
();
12
13
//This may be better with a stat() function
14
tempPos = ftell(
infDatainfFile
);
15
fseek(
infDatainfFile
, 0,
SEEK_END
);
16
tempLen = ftell(
infDatainfFile
);
17
fseek(
infDatainfFile
, tempPos,
SEEK_SET
);
18
19
TRACEEXIT
();
20
return
tempLen;
21
}
FILE
struct __STDIO_FILE_STRUCT FILE
Definition:
FBLib_hdd.h:137
FBLib_rec.h
infDatainfFile
FILE * infDatainfFile
Definition:
infData_OpenFile.c:4
infData_Flen
dword infData_Flen(void)
Definition:
infData_Flen.c:6
SEEK_SET
#define SEEK_SET
Definition:
libFireBird.h:1875
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
SEEK_END
#define SEEK_END
Definition:
libFireBird.h:1883
rec
infData_Flen.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3