"Fossies" - the Fresh Open Source Software Archive

Member "sarg-2.4.0/include/dichotomic.h" (25 Jun 2014, 565 Bytes) of package /linux/privat/sarg-2.4.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "dichotomic.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef DICHOTOMIC_HEADER
    2 #define DICHOTOMIC_HEADER
    3 
    4 #ifdef HAVE_STDBOOL_H
    5 #include <stdbool.h>
    6 #else
    7 typedef int bool;
    8 #ifndef true
    9 #define true 1
   10 #endif
   11 #ifndef false
   12 #define false 0
   13 #endif
   14 #endif
   15 
   16 //! The object to store key/value pairs
   17 typedef struct DichotomicStruct *DichotomicObject;
   18 
   19 DichotomicObject Dichotomic_Create(void);
   20 void Dichotomic_Destroy(DichotomicObject *ObjPtr);
   21 
   22 const char *Dichotomic_Search(DichotomicObject Obj,const char *key);
   23 bool Dichotomic_Insert(DichotomicObject Obj,const char *key, const char *value);
   24 
   25 
   26 #endif //DICHOTOMIC_HEADER