FireBirdLib - Topfield TMS PVR TAP Programming Library
StringDBSaveToFile.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
libFireBird.h
"
3
4
bool
StringDBSaveToFile
(
tStringDB
*StringDB, TYPE_File *f)
5
{
6
TRACEENTER
();
7
8
dword l, p;
9
10
if
(!StringDB || !f || !StringDB->
DB
)
11
{
12
TRACEEXIT
();
13
return
FALSE;
14
}
15
16
//DB Size
17
l = StringDB->
DBEnd
- StringDB->
DB
+ 1;
18
TAP_Hdd_Fwrite(&l,
sizeof
(dword), 1, f);
19
20
//Current pointer
21
p = StringDB->
DBPtr
- StringDB->
DB
;
22
TAP_Hdd_Fwrite(&p,
sizeof
(dword), 1, f);
23
24
TAP_Hdd_Fwrite(StringDB->
DB
, 1, l, f);
25
26
TRACEEXIT
();
27
return
TRUE;
28
}
StringDBSaveToFile
bool StringDBSaveToFile(tStringDB *StringDB, TYPE_File *f)
Definition:
StringDBSaveToFile.c:4
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tStringDB
Definition:
libFireBird.h:2547
tStringDB::DB
char * DB
Definition:
libFireBird.h:2549
tStringDB::DBEnd
char * DBEnd
Definition:
libFireBird.h:2551
tStringDB::DBPtr
char * DBPtr
Definition:
libFireBird.h:2550
StringDB
StringDBSaveToFile.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3