FireBirdLib - Topfield TMS PVR TAP Programming Library
StringDBPrev.c
Go to the documentation of this file.
1
#include "
libFireBird.h
"
2
3
dword
StringDBPrev
(
tStringDB
*StringDB)
4
{
5
TRACEENTER
();
6
7
char
*p;
8
dword ret;
9
10
if
(!StringDB || !StringDB->
DBPtr
|| (StringDB->
DBPtr
<= StringDB->
DB
))
11
{
12
TRACEEXIT
();
13
return
'\0'
;
14
}
15
16
p = (StringDB->
DBPtr
- 2);
17
while
(*p || (p >= StringDB->
DB
)) p--;
18
p++;
19
StringDB->
DBPtr
= p;
20
ret = (dword)p - (dword)StringDB->
DB
;
21
22
TRACEEXIT
();
23
return
ret;
24
}
StringDBPrev
dword StringDBPrev(tStringDB *StringDB)
Definition:
StringDBPrev.c:3
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::DBPtr
char * DBPtr
Definition:
libFireBird.h:2550
StringDB
StringDBPrev.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3