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
5bool INIKeyExists(char *Key)
6{
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}
void INIFindStartEnd(char *, char **, char **, dword)
dword BufferSize
Definition: INIOpenFile.c:7
char * INIBuffer
Definition: INIOpenFile.c:6
bool INIKeyExists(char *Key)
Definition: INIKeyExists.c:5
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243