File: dichotomic.h

package info (click to toggle)
sarg 2.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,456 kB
  • sloc: ansic: 17,692; sh: 4,581; xml: 371; javascript: 352; php: 205; makefile: 183; sed: 16; pascal: 2
file content (26 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef DICHOTOMIC_HEADER
#define DICHOTOMIC_HEADER

#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#else
typedef int bool;
#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif
#endif

//! The object to store key/value pairs
typedef struct DichotomicStruct *DichotomicObject;

DichotomicObject Dichotomic_Create(void);
void Dichotomic_Destroy(DichotomicObject *ObjPtr);

const char *Dichotomic_Search(DichotomicObject Obj,const char *key);
bool Dichotomic_Insert(DichotomicObject Obj,const char *key, const char *value);


#endif //DICHOTOMIC_HEADER