FireBirdLib - Topfield TMS PVR TAP Programming Library
INIKeyExists.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_ini.h
"
3
#include "
libFireBird.h
"
4
5
bool
INIKeyExists
(
char
*Key)
6
{
7
TRACEENTER
();
8
9
char
*i = NULL, *j = NULL;
10
char
TempKey[80];
11
bool
ret;
12
13
if
(Key &&
INIBuffer
)
14
{
15
strncpy(TempKey, Key,
sizeof
(TempKey) - 2);
16
TempKey[
sizeof
(TempKey) - 2] =
'\0'
;
17
strcat(TempKey,
"="
);
18
19
INIFindStartEnd
(TempKey, &i, &j,
BufferSize
);
20
ret = (i && j);
21
}
22
else
23
ret = FALSE;
24
25
TRACEEXIT
();
26
return
ret;
27
}
FBLib_ini.h
INIFindStartEnd
void INIFindStartEnd(char *, char **, char **, dword)
Definition:
INIFindStartEnd.c:5
BufferSize
dword BufferSize
Definition:
INIOpenFile.c:7
INIBuffer
char * INIBuffer
Definition:
INIOpenFile.c:6
INIKeyExists
bool INIKeyExists(char *Key)
Definition:
INIKeyExists.c:5
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
ini
INIKeyExists.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3